[Libreoffice-commits] core.git: l10ntools/source

Tomofumi Yagi yagit at mknada.sakura.ne.jp
Thu Sep 12 02:08:44 PDT 2013


 l10ntools/source/merge.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit e457724d5ef1aaac98b6ff84ce1b054adda72abe
Author: Tomofumi Yagi <yagit at mknada.sakura.ne.jp>
Date:   Thu Sep 12 11:04:21 2013 +0200

    fdo#69208 take getenv() call out of the loop
    
    Change-Id: Iade7917eb9ade7248392e04f4653bda3674464aa

diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx
index 63b212c..6752c7f 100644
--- a/l10ntools/source/merge.cxx
+++ b/l10ntools/source/merge.cxx
@@ -280,6 +280,8 @@ MergeDataFile::MergeDataFile(
     const OString &rFileName, const OString &rFile,
     bool bCaseSensitive, bool bWithQtz )
 {
+    OString sEnableReleaseBuild(getenv("ENABLE_RELEASE_BUILD"));
+
     std::ifstream aInputStream( rFileName.getStr() );
     if ( !aInputStream.is_open() )
     {
@@ -371,7 +373,7 @@ MergeDataFile::MergeDataFile(
                 bFirstLang, bCaseSensitive );
 
             if( bFirstLang && bWithQtz &&
-                ( strcmp(getenv("ENABLE_RELEASE_BUILD"),"TRUE") ) )
+                !sEnableReleaseBuild.equals("TRUE") )
             {
                 aLanguageSet.insert("qtz");
                 InsertEntry(


More information about the Libreoffice-commits mailing list