diff options
author | Tomofumi Yagi <yagit@mknada.sakura.ne.jp> | 2013-09-12 11:04:21 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-09-12 11:04:46 +0200 |
commit | e457724d5ef1aaac98b6ff84ce1b054adda72abe (patch) | |
tree | 7857166ac151769c0c3a8bb880a634c3b90907bc /l10ntools | |
parent | 3bba060388fde3272c93f96050a56f62d364256c (diff) |
fdo#69208 take getenv() call out of the loop
Change-Id: Iade7917eb9ade7248392e04f4653bda3674464aa
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/merge.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx index 63b212cbbd8f..6752c7fb704c 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( |