diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-29 13:35:28 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-29 13:37:11 -0800 |
commit | 962e71d495c5184cde7a33259ef945417334f0f0 (patch) | |
tree | 5c870eb35b317edf313240ceb28835a1bb49279b | |
parent | 1b48b19d0bdb40188d2175f07ea59c0795231375 (diff) | |
download | subsurface-962e71d495c5184cde7a33259ef945417334f0f0.tar.gz |
Make the cache cache things
That fancy cache is kinda pointless if we never fill it...
-rw-r--r-- | gettextfromc.cpp | 2 |
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(); } |