diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-30 19:16:07 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-30 19:16:37 +0530 |
| commit | 4f945367ebc8e34263acbfca0416e3f75653924e (patch) | |
| tree | aff34361a2b2160aea284df9b619193917bcbc88 /src/LuaRuntime.hpp | |
| parent | e690963fb6c0240171236fc2d669f95ee26b6798 (diff) | |
| download | null-browser-4f945367ebc8e34263acbfca0416e3f75653924e.tar.gz null-browser-4f945367ebc8e34263acbfca0416e3f75653924e.zip | |
Update window title on tab change + refactoring
Diffstat (limited to 'src/LuaRuntime.hpp')
| -rw-r--r-- | src/LuaRuntime.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
