Fix build for old gcc

Workaround extra temporaries created by gcc-4.0 on mac - since here
PoHeader has private copy ctor.

Change-Id: I6faf99f78c11452f6adf6f1f18e1ceda9e23e7a2
This commit is contained in:
Thorsten Behrens 2012-11-21 14:16:48 +01:00
parent 970b53e050
commit 1c84f6f475
2 changed files with 5 additions and 2 deletions

View file

@ -272,7 +272,8 @@ void handleCommand(
inPath.lastIndexOf('/')- nProjectInd),
RTL_TEXTENCODING_UTF8 );
rPoOutPut.writeHeader(PoHeader(relativPath));
PoHeader aTmp(relativPath);
rPoOutPut.writeHeader(aTmp);
}
}
while (!in.eof())

View file

@ -164,7 +164,9 @@ void HandleLanguage(const OString& LangEntryName, const OString& rOldPath,
<< sOldPoFileName.getStr() << endl;
return;
}
aNewPo.writeHeader(PoHeader(aOldPo));
PoHeader aTmp(aOldPo);
aNewPo.writeHeader(aTmp);
aOldPo.close();
}