diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2019-06-24 13:15:29 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2019-06-25 12:35:25 +0000 |
commit | e65aeb5b12348ebd4ebd8c3806372f336a52cb98 (patch) | |
tree | e80e5ae95da3dbc4d44120bf1ef9aba9eee3a929 /src | |
parent | e9e8852f50eabf95a9d8006aee3696ed86d9755d (diff) |
LanguageServerProtocol: Fix compilation warnings
Remove export macro from inline functions.
Change-Id: Ifd3cedb88e8da1b043c81f99624556843671aab3
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/languageserverprotocol/icontent.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/languageserverprotocol/icontent.h b/src/libs/languageserverprotocol/icontent.h index af14604739..1b57165b2e 100644 --- a/src/libs/languageserverprotocol/icontent.h +++ b/src/libs/languageserverprotocol/icontent.h @@ -92,7 +92,7 @@ using ResponseHandler = std::function<void(const QByteArray &, QTextCodec *)>; using ResponseHandlers = std::function<void(MessageId, const QByteArray &, QTextCodec *)>; using MethodHandler = std::function<void(const QString, MessageId, const IContent *)>; -inline LANGUAGESERVERPROTOCOL_EXPORT uint qHash(const LanguageServerProtocol::MessageId &id) +inline uint qHash(const LanguageServerProtocol::MessageId &id) { if (Utils::holds_alternative<int>(id)) return QT_PREPEND_NAMESPACE(qHash(Utils::get<int>(id))); @@ -102,8 +102,7 @@ inline LANGUAGESERVERPROTOCOL_EXPORT uint qHash(const LanguageServerProtocol::Me } template <typename Error> -inline LANGUAGESERVERPROTOCOL_EXPORT QDebug operator<<(QDebug stream, - const LanguageServerProtocol::MessageId &id) +inline QDebug operator<<(QDebug stream, const LanguageServerProtocol::MessageId &id) { if (Utils::holds_alternative<int>(id)) stream << Utils::get<int>(id); |