History

Create warning whitelist system

Dale Glass committed 4 years ago

Commit 3347cc51 parent 539899e16 files · +193 −30Browse files

Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 16 files). Show all

Unified · Split

interface/src/scripting/AssetMappingsScriptingInterface.cpp+5−0
@@ -22,6 +22,7 @@ · 21 unmodified lines
2222 #include <NodeList.h>
2323 #include <OffscreenUi.h>
2424 #include <UserActivityLogger.h>
25+#include "WarningsSuppression.h"
2526
2627 static const int AUTO_REFRESH_INTERVAL = 1000;
2728
@@ -167,7 +168,11 @@ void AssetMappingsScriptingInterface::getAllMappings(QJSValue callback) { · 139 unmodified lines
167168
168169 connect(request, &GetAllMappingsRequest::finished, this, [callback](GetAllMappingsRequest* request) mutable {
169170 auto mappings = request->getMappings();
171+
172+ OVERTE_IGNORE_DEPRECATED_BEGIN
173+ // Still using QScriptEngine
170174 auto map = callback.engine()->newObject();
175+ OVERTE_IGNORE_DEPRECATED_END
171176
172177 for (auto& kv : mappings ) {
173178 map.setProperty(kv.first, kv.second.hash);