summaryrefslogtreecommitdiffstats
path: root/core/gettextfromc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/gettextfromc.cpp')
-rw-r--r--core/gettextfromc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/gettextfromc.cpp b/core/gettextfromc.cpp
index 8d1bbc1bd..e668fec2e 100644
--- a/core/gettextfromc.cpp
+++ b/core/gettextfromc.cpp
@@ -18,8 +18,8 @@ void gettextFromC::reset(void)
gettextFromC *gettextFromC::instance()
{
- static QScopedPointer<gettextFromC> self(new gettextFromC());
- return self.data();
+ static gettextFromC self;
+ return &self;
}
extern "C" const char *trGettext(const char *text)