From cb158d8a139806fb4a4798e4b9759cd8d26c45d0 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 13 Jan 2007 20:05:48 +0000 Subject: [PATCH] fix completely stupid commit. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16670 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/messages.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/messages.C b/src/messages.C index a8b2421f13..1b8e7fa84e 100644 --- a/src/messages.C +++ b/src/messages.C @@ -215,14 +215,16 @@ public: #endif setlocale(LC_CTYPE, oldCTYPE.c_str()); - if (!cache_.insert(std::make_pair(m, translated)).second) { + std::pair 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: ///