summaryrefslogtreecommitdiff
path: root/l10ntools/source/helpex.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-08 22:07:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-08 22:07:23 +0100
commite960410674fc6761025ca1a63f88352a7049fbb5 (patch)
treee593107b2c9c699d53a2e01c34450829527b48b6 /l10ntools/source/helpex.cxx
parentaa11b4c86e4b41be542623b7d98a3fb8e5d30745 (diff)
Various more l10ntools clean up
Diffstat (limited to 'l10ntools/source/helpex.cxx')
-rw-r--r--l10ntools/source/helpex.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/l10ntools/source/helpex.cxx b/l10ntools/source/helpex.cxx
index 02f091603e3c..d966dc648273 100644
--- a/l10ntools/source/helpex.cxx
+++ b/l10ntools/source/helpex.cxx
@@ -26,6 +26,10 @@
*
************************************************************************/
+#include "sal/config.h"
+
+#include <iostream>
+
#include <stdio.h>
#include <stdlib.h>
@@ -216,8 +220,8 @@ int _cdecl main( int argc, char *argv[] )
ifstream aFStream( sInputFile.copy( 1 ).getStr() , ios::in );
if( !aFStream ){
- cerr << "ERROR: - helpex - Can't open the file " << sInputFile.copy( 1 ).getStr() << "\n";
- exit(-1);
+ std::cerr << "ERROR: - helpex - Can't open the file " << sInputFile.copy( 1 ).getStr() << "\n";
+ std::exit(EXIT_FAILURE);
}
vector<rtl::OString> filelist;
@@ -244,7 +248,7 @@ int _cdecl main( int argc, char *argv[] )
for( vector<rtl::OString>::iterator pos = filelist.begin() ; pos != filelist.end() ; ++pos )
{
sHelpFile = *pos;
- cout << ".";cout.flush();
+ std::cout << ".\n";
HelpParser aParser( sHelpFile , bUTF8 , true );
hasNoError = aParser.Merge( sSDFFile , sOutputFileX , sOutputFileY , true , aLanguages , aMergeDataFile , bCreateDir );
@@ -252,7 +256,7 @@ int _cdecl main( int argc, char *argv[] )
}
}
} else
- cerr << "helpex ERROR: Wrong input parameters!\n";
+ std::cerr << "helpex ERROR: Wrong input parameters!\n";
if( hasNoError )
return 0;