aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--converters.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/converters.h b/converters.h
index f7d99f48..bba298e0 100644
--- a/converters.h
+++ b/converters.h
@@ -28,6 +28,9 @@ namespace QMatrixClient
inline QJsonValue toJson(const QJsonValue& val) { return val; }
inline QJsonObject toJson(const QJsonObject& o) { return o; }
inline QJsonArray toJson(const QJsonArray& arr) { return arr; }
+#ifdef _MSC_VER // MSVC gets lost and doesn't know which overload to use
+ inline QJsonValue toJson(const QString& s) { return s; }
+#endif
template <typename T>
inline QJsonArray toJson(const QVector<T>& vals)