summaryrefslogtreecommitdiffstats
path: root/gettextfromc.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-29 13:35:28 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-29 13:37:11 -0800
commit962e71d495c5184cde7a33259ef945417334f0f0 (patch)
tree5c870eb35b317edf313240ceb28835a1bb49279b /gettextfromc.cpp
parent1b48b19d0bdb40188d2175f07ea59c0795231375 (diff)
downloadsubsurface-962e71d495c5184cde7a33259ef945417334f0f0.tar.gz
Make the cache cache things
That fancy cache is kinda pointless if we never fill it...
Diffstat (limited to 'gettextfromc.cpp')
-rw-r--r--gettextfromc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettextfromc.cpp b/gettextfromc.cpp
index de2b1d486..c579e3c3c 100644
--- a/gettextfromc.cpp
+++ b/gettextfromc.cpp
@@ -6,7 +6,7 @@ const char *gettextFromC::trGettext(const char *text)
{
QByteArray &result = translationCache[QByteArray(text)];
if (result.isEmpty())
- result = trUtf8(text).toUtf8();
+ result = translationCache[QByteArray(text)] = trUtf8(text).toUtf8();
return result.constData();
}