forked from qt-creator/qt-creator
LanguageServerProtocol: Fix compilation warnings
Remove export macro from inline functions. Change-Id: Ifd3cedb88e8da1b043c81f99624556843671aab3 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
committed by
Cristian Adam
parent
e9e8852f50
commit
e65aeb5b12
@@ -92,7 +92,7 @@ using ResponseHandler = std::function<void(const QByteArray &, QTextCodec *)>;
|
|||||||
using ResponseHandlers = std::function<void(MessageId, const QByteArray &, QTextCodec *)>;
|
using ResponseHandlers = std::function<void(MessageId, const QByteArray &, QTextCodec *)>;
|
||||||
using MethodHandler = std::function<void(const QString, MessageId, const IContent *)>;
|
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))
|
if (Utils::holds_alternative<int>(id))
|
||||||
return QT_PREPEND_NAMESPACE(qHash(Utils::get<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>
|
template <typename Error>
|
||||||
inline LANGUAGESERVERPROTOCOL_EXPORT QDebug operator<<(QDebug stream,
|
inline QDebug operator<<(QDebug stream, const LanguageServerProtocol::MessageId &id)
|
||||||
const LanguageServerProtocol::MessageId &id)
|
|
||||||
{
|
{
|
||||||
if (Utils::holds_alternative<int>(id))
|
if (Utils::holds_alternative<int>(id))
|
||||||
stream << Utils::get<int>(id);
|
stream << Utils::get<int>(id);
|
||||||
|
Reference in New Issue
Block a user