mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
fix completely stupid commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16670 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3500af60ba
commit
cb158d8a13
@ -215,14 +215,16 @@ public:
|
||||
#endif
|
||||
setlocale(LC_CTYPE, oldCTYPE.c_str());
|
||||
|
||||
if (!cache_.insert(std::make_pair(m, translated)).second) {
|
||||
std::pair<TranslationCache::iterator, bool> result =
|
||||
cache_.insert(std::make_pair(m, translated));
|
||||
|
||||
if (!result.second) {
|
||||
lyxerr << "WARNING: cannot fill-in gettext cache in Messages::get()!" << endl;
|
||||
dummy_string_ = translated;
|
||||
return dummy_string_;
|
||||
}
|
||||
|
||||
it = cache_.insert(std::make_pair(m, translated)).first;
|
||||
return it->second;
|
||||
return result.first->second;
|
||||
}
|
||||
private:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user