From e65aeb5b12348ebd4ebd8c3806372f336a52cb98 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Mon, 24 Jun 2019 13:15:29 +0200 Subject: [PATCH] LanguageServerProtocol: Fix compilation warnings Remove export macro from inline functions. Change-Id: Ifd3cedb88e8da1b043c81f99624556843671aab3 Reviewed-by: David Schulz --- src/libs/languageserverprotocol/icontent.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libs/languageserverprotocol/icontent.h b/src/libs/languageserverprotocol/icontent.h index af14604739e..1b57165b2e2 100644 --- a/src/libs/languageserverprotocol/icontent.h +++ b/src/libs/languageserverprotocol/icontent.h @@ -92,7 +92,7 @@ using ResponseHandler = std::function; using ResponseHandlers = std::function; using MethodHandler = std::function; -inline LANGUAGESERVERPROTOCOL_EXPORT uint qHash(const LanguageServerProtocol::MessageId &id) +inline uint qHash(const LanguageServerProtocol::MessageId &id) { if (Utils::holds_alternative(id)) return QT_PREPEND_NAMESPACE(qHash(Utils::get(id))); @@ -102,8 +102,7 @@ inline LANGUAGESERVERPROTOCOL_EXPORT uint qHash(const LanguageServerProtocol::Me } template -inline LANGUAGESERVERPROTOCOL_EXPORT QDebug operator<<(QDebug stream, - const LanguageServerProtocol::MessageId &id) +inline QDebug operator<<(QDebug stream, const LanguageServerProtocol::MessageId &id) { if (Utils::holds_alternative(id)) stream << Utils::get(id);