[Libreoffice-commits] core.git: l10ntools/source
Norbert Thiebaud
nthiebaud at gmail.com
Mon Sep 2 16:44:40 PDT 2013
l10ntools/source/pocheck.cxx | 54 +++++++++++++++++++++++++++++--------------
1 file changed, 37 insertions(+), 17 deletions(-)
New commits:
commit c2a9699e90abb40cbe1772cbd581435568468265
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Mon Sep 2 18:43:52 2013 -0500
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
diff --git a/l10ntools/source/pocheck.cxx b/l10ntools/source/pocheck.cxx
index f423d14..10dcb19 100644
--- a/l10ntools/source/pocheck.cxx
+++ b/l10ntools/source/pocheck.cxx
@@ -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]);
if( !aPoInput.isOpen() )
std::cerr << "Warning: Cannot open " << aPoPaths[i] << std::endl;
PoOfstream aPoOutput;
aPoOutput.open(aPoPaths[i]+".new");
- switch (i) {
- case 0:
- aPoOutput.writeHeader(PoHeader("formula/source/core/resource"));
- break;
- case 1:
- aPoOutput.writeHeader(PoHeader("scaddins/source/analysis"));
- break;
- case 2:
- aPoOutput.writeHeader(PoHeader("scaddins/source/datefunc"));
- break;
- case 3:
- aPoOutput.writeHeader(PoHeader("scaddins/source/pricing"));
+ switch (i)
+ {
+ case 0:
+ {
+ PoHeader hd(OString("formula/source/core/resource"));
+ aPoOutput.writeHeader(hd);
+ break;
+ }
+ case 1:
+ {
+ PoHeader hd(OString("scaddins/source/analysis"));
+ 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;
@@ -308,15 +323,20 @@ static void checkFunctionNames(OString aLanguage)
aPoInput.readEntry(aPoEntry);
if( aPoInput.eof() )
break;
- for ( std::list<PoEntry*>::iterator it=repeatedEntries.begin(); it!=repeatedEntries.end(); ++it) {
- if ((*it)->getMsgId() == aPoEntry.getMsgId() && (*it)->getGroupId() == aPoEntry.getGroupId()) {
+ for ( std::list<PoEntry*>::iterator it=repeatedEntries.begin(); it!=repeatedEntries.end(); ++it)
+ {
+ if ((*it)->getMsgId() == aPoEntry.getMsgId() && (*it)->getGroupId() == aPoEntry.getGroupId())
+ {
bError = true;
break;
}
}
- if (bError) {
+ if (bError)
+ {
bAnyError = true;
- } else {
+ }
+ else
+ {
aPoOutput.writeEntry(aPoEntry);
}
}
More information about the Libreoffice-commits
mailing list