From 149399a0722cc27961114435e97cc97c76d8c7a6 Mon Sep 17 00:00:00 2001 From: nerix Date: Sun, 2 Apr 2023 20:30:15 +0200 Subject: [PATCH] Fix plugin compilation error when using Qt 6 (#4504) --- CHANGELOG.md | 2 +- src/controllers/plugins/LuaAPI.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c65d6ff4..ca71d500c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,7 @@ - Dev: Only log debug messages when NDEBUG is not defined. (#4442) - Dev: Cleaned up theme related code. (#4450) - Dev: Ensure tests have default-initialized settings. (#4498) -- Dev: Add scripting capabilities with Lua (#4341) +- Dev: Add scripting capabilities with Lua (#4341, #4504) - Dev: Conan 2.0 is now used instead of Conan 1.0. (#4417) - Dev: Added tests and benchmarks for `LinkParser`. (#4436) diff --git a/src/controllers/plugins/LuaAPI.cpp b/src/controllers/plugins/LuaAPI.cpp index ff57d7e28..6ffaf4982 100644 --- a/src/controllers/plugins/LuaAPI.cpp +++ b/src/controllers/plugins/LuaAPI.cpp @@ -50,7 +50,7 @@ QDebug qdebugStreamForLogLevel(lua::api::LogLevel lvl) return base.critical(); default: assert(false && "if this happens magic_enum must have failed us"); - return {(QString *)nullptr}; + return QDebug((QString *)nullptr); } }