fdo#69208 take getenv() call out of the loop

Change-Id: Iade7917eb9ade7248392e04f4653bda3674464aa
This commit is contained in:
Tomofumi Yagi
2013-09-12 11:04:21 +02:00
committed by Andras Timar
parent 3bba060388
commit e457724d5e

View File

@@ -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(