PoHeader constructure problem with boost

No idea why that seems to work on other platform
but 10.6 SDK does not like it at all

Change-Id: I145b03874ba948cb29c998552e852f29999bc471
This commit is contained in:
Norbert Thiebaud
2013-09-02 18:43:52 -05:00
parent b69d152cfa
commit c2a9699e90

View File

@@ -279,25 +279,40 @@ static void checkFunctionNames(OString aLanguage)
} }
} }
// //
for (int i=0;i<4;i++) { for (int i=0;i<4;i++)
{
aPoInput.open(aPoPaths[i]); aPoInput.open(aPoPaths[i]);
if( !aPoInput.isOpen() ) if( !aPoInput.isOpen() )
std::cerr << "Warning: Cannot open " << aPoPaths[i] << std::endl; std::cerr << "Warning: Cannot open " << aPoPaths[i] << std::endl;
PoOfstream aPoOutput; PoOfstream aPoOutput;
aPoOutput.open(aPoPaths[i]+".new"); aPoOutput.open(aPoPaths[i]+".new");
switch (i) { switch (i)
case 0: {
aPoOutput.writeHeader(PoHeader("formula/source/core/resource")); case 0:
break; {
case 1: PoHeader hd(OString("formula/source/core/resource"));
aPoOutput.writeHeader(PoHeader("scaddins/source/analysis")); aPoOutput.writeHeader(hd);
break; break;
case 2: }
aPoOutput.writeHeader(PoHeader("scaddins/source/datefunc")); case 1:
break; {
case 3: PoHeader hd(OString("scaddins/source/analysis"));
aPoOutput.writeHeader(PoHeader("scaddins/source/pricing")); aPoOutput.writeHeader(hd);
break;
}
case 2:
{
PoHeader hd(OString("scaddins/source/datefunc"));
aPoOutput.writeHeader(hd);
break;
}
case 3:
{
PoHeader hd(OString("scaddins/source/pricing"));
aPoOutput.writeHeader(hd);
break;
}
} }
bool bAnyError = false; bool bAnyError = false;
@@ -308,15 +323,20 @@ static void checkFunctionNames(OString aLanguage)
aPoInput.readEntry(aPoEntry); aPoInput.readEntry(aPoEntry);
if( aPoInput.eof() ) if( aPoInput.eof() )
break; break;
for ( std::list<PoEntry*>::iterator it=repeatedEntries.begin(); it!=repeatedEntries.end(); ++it) { for ( std::list<PoEntry*>::iterator it=repeatedEntries.begin(); it!=repeatedEntries.end(); ++it)
if ((*it)->getMsgId() == aPoEntry.getMsgId() && (*it)->getGroupId() == aPoEntry.getGroupId()) { {
if ((*it)->getMsgId() == aPoEntry.getMsgId() && (*it)->getGroupId() == aPoEntry.getGroupId())
{
bError = true; bError = true;
break; break;
} }
} }
if (bError) { if (bError)
{
bAnyError = true; bAnyError = true;
} else { }
else
{
aPoOutput.writeEntry(aPoEntry); aPoOutput.writeEntry(aPoEntry);
} }
} }