summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2014-09-07 05:52:21 -0400
committerStephan Bergmann <sbergman@redhat.com>2014-09-19 11:49:01 +0200
commit43ed0dbb596399a134c34a5d906c5debb349f640 (patch)
treeaee5568f203bb0357d428c3b15396deaf1922fe6 /l10ntools
parent597fda036e98fa974b050c340174069b06d5bd5b (diff)
l10ntools/source/export.cxx: be more std::
Change-Id: Ia5f96f7d2bf366a6156d198e73e7987a471f28da Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/export.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 6052e24c921e..38cd3ed5eb3f 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -26,8 +26,8 @@
#include "srclex.hxx"
#include "boost/scoped_ptr.hpp"
-#include <stdio.h>
-#include <stdlib.h>
+#include <cstdio>
+#include <cstdlib>
#include "common.hxx"
#include "export.hxx"
#include "tokens.h"
@@ -207,9 +207,10 @@ Export::Export(const OString &rOutput)
pParseQueue( new ParserQueue( *this ) )
{
aOutput.mPo = new PoOfstream( rOutput, PoOfstream::APP );
- if (!aOutput.mPo->isOpen()) {
- fprintf(stderr, "ERROR : Can't open file %s\n", rOutput.getStr());
- exit ( -1 );
+ if (!aOutput.mPo->isOpen())
+ {
+ std::fprintf(stderr, "ERROR : Can't open file %s\n", rOutput.getStr());
+ std::exit(EXIT_FAILURE);
}
}
@@ -652,8 +653,8 @@ int Export::Execute( int nToken, const char * pToken )
}
break;
case PRAGMA : {
- fprintf(stderr, "ERROR: archaic PRAGMA %s\n", sToken.getStr());
- exit(-1);
+ std::fprintf(stderr, "ERROR: archaic PRAGMA %s\n", sToken.getStr());
+ std::exit(EXIT_FAILURE);
}
break;
}