From 4f945367ebc8e34263acbfca0416e3f75653924e Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 30 Mar 2025 19:16:07 +0530 Subject: Update window title on tab change + refactoring --- src/LuaRuntime.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/LuaRuntime.hpp') diff --git a/src/LuaRuntime.hpp b/src/LuaRuntime.hpp index 4d69760..d2211df 100644 --- a/src/LuaRuntime.hpp +++ b/src/LuaRuntime.hpp @@ -20,9 +20,9 @@ class LuaRuntime : public QObject { const char *web_global_name = "web"; public: - static LuaRuntime *instance() { - static LuaRuntime inst; - return &inst; + static LuaRuntime &instance() { + static LuaRuntime runtime; + return runtime; } void evaluate(const QString &code); -- cgit v1.3.1