From 424d48d347c317fa1a542d65e68327aea08cb1ed Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Tue, 30 Aug 2016 21:31:04 +0200 Subject: calling set::find() before set::insert() is unwise ... because the insert() fails anyway if the key exists already and adding a find() only is a performance penalty. Change-Id: I38da75754fb23b9db3b59e5a0bd81e5e5bb05ce2 --- linguistic/source/lngsvcmgr.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 566d6c4e594e..8f456225bdb2 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -114,9 +114,8 @@ static uno::Sequence< lang::Locale > GetAvailLocales( const lang::Locale *pLoc = aLoc.getConstArray(); LanguageType nLang = LinguLocaleToLanguage( pLoc[k] ); - // language not already added? - if (aLanguages.find( nLang ) == aLanguages.end()) - aLanguages.insert( nLang ); + // It's a set, so insertion fails if language was already added. + aLanguages.insert( nLang ); } } else -- cgit ro/capgemini/cg-4.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/stlport/makefile.mk
AgeCommit message (Expand)Author
2012-02-29Simplify install name handling for external libraries on Mac OS XStephan Bergmann
2012-02-20stlport stl/_locale.h new operator unrecognizedWei Ming Khoo
2011-06-12Remove some OS/2 remnantsFrancois Tigeot
2011-05-14Drop stuff for old MSVC versions we don't support anywayTor Lillqvist
2011-05-14Kill USE_NEW_SDK and adapt to it being always TRUETor Lillqvist
2011-03-29use --hash-style=gnu linking when supportedPetr Mladek
2011-02-09Build STLport only as a compatibility libraryFridrich Štrba
2011-02-08Don't use the dummy functional at allFridrich Štrba
2011-02-08Don't use the dummy functional on windowsFridrich Štrba
2011-02-08cleared the need of the non-standard numeric, rope and vector headerFridrich Štrba
2011-02-06removing the hash_map, hash_set and slist forwarding headersFridrich Štrba
2010-12-07make possible to build with c++0xCaolán McNamara
2010-04-16CWS-TOOLING: integrate CWS sb118Jens-Heiner Rechtien
2010-03-10ause110: update to DEV300_m74Hans-Joachim Lankenau
2010-02-25sb118: merged in DEV300_m72sb
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun Mi...Jens-Heiner Rechtien
2010-01-15ause110: #i106731# remove tarballs from scm and find them in download cache dirHans-Joachim Lankenau
2010-01-12sb118: #i108269# first step of removing tcsh supportsb
2009-11-13sb116: #i106845# removed obsolete IRIX portsb
2009-08-06CWS-TOOLING: integrate CWS jsc320Release Engineers
2009-04-27CWS-TOOLING: integrate CWS sb107Ivo Hinkelmann
2009-04-01CWS-TOOLING: integrate CWS cmcfixes56Ivo Hinkelmann
2009-02-19CWS-TOOLING: integrate CWS ause099Oliver Bolte
2008-12-09CWS-TOOLING: integrate CWS os2port04Rüdiger Timm
2008-10-01CWS-TOOLING: integrate CWS sb93Vladimir Glazounov
2008-07-22INTEGRATION: CWS os2port03 (1.40.4); FILE MERGEDOliver Bolte
2008-06-16INTEGRATION: CWS hr51 (1.43.4); FILE MERGEDRüdiger Timm
2008-04-11INTEGRATION: CWS changefileheader (1.42.2); FILE MERGEDRüdiger Timm
2008-03-18INTEGRATION: CWS sb83 (1.41.14); FILE MERGEDVladimir Glazounov