fdo#69208 take getenv() call out of the loop
Change-Id: Iade7917eb9ade7248392e04f4653bda3674464aa
This commit is contained in:
committed by
Andras Timar
parent
3bba060388
commit
e457724d5e
@@ -280,6 +280,8 @@ MergeDataFile::MergeDataFile(
|
|||||||
const OString &rFileName, const OString &rFile,
|
const OString &rFileName, const OString &rFile,
|
||||||
bool bCaseSensitive, bool bWithQtz )
|
bool bCaseSensitive, bool bWithQtz )
|
||||||
{
|
{
|
||||||
|
OString sEnableReleaseBuild(getenv("ENABLE_RELEASE_BUILD"));
|
||||||
|
|
||||||
std::ifstream aInputStream( rFileName.getStr() );
|
std::ifstream aInputStream( rFileName.getStr() );
|
||||||
if ( !aInputStream.is_open() )
|
if ( !aInputStream.is_open() )
|
||||||
{
|
{
|
||||||
@@ -371,7 +373,7 @@ MergeDataFile::MergeDataFile(
|
|||||||
bFirstLang, bCaseSensitive );
|
bFirstLang, bCaseSensitive );
|
||||||
|
|
||||||
if( bFirstLang && bWithQtz &&
|
if( bFirstLang && bWithQtz &&
|
||||||
( strcmp(getenv("ENABLE_RELEASE_BUILD"),"TRUE") ) )
|
!sEnableReleaseBuild.equals("TRUE") )
|
||||||
{
|
{
|
||||||
aLanguageSet.insert("qtz");
|
aLanguageSet.insert("qtz");
|
||||||
InsertEntry(
|
InsertEntry(
|
||||||
|
Reference in New Issue
Block a user