mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Make the cache cache things
That fancy cache is kinda pointless if we never fill it...
This commit is contained in:
parent
1b48b19d0b
commit
962e71d495
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ const char *gettextFromC::trGettext(const char *text)
|
||||||
{
|
{
|
||||||
QByteArray &result = translationCache[QByteArray(text)];
|
QByteArray &result = translationCache[QByteArray(text)];
|
||||||
if (result.isEmpty())
|
if (result.isEmpty())
|
||||||
result = trUtf8(text).toUtf8();
|
result = translationCache[QByteArray(text)] = trUtf8(text).toUtf8();
|
||||||
return result.constData();
|
return result.constData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue