summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2014-09-08 10:18:14 -0400
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-09-08 15:33:29 +0000
commit181b1c0f7cfe6a26874705d64b5efe6ea93f6e93 (patch)
tree922f1d5f5fb6ceae02ee8bedd5b706b48ae84dde /l10ntools
parent3fc1e691c5e14f3b7a2579b563188e814f731cf6 (diff)
l10ntools/source/export.cxx: improve style of code
Change-Id: Ieef44da0ab8f2d33faaf8c32970bb9d33df6750b Reviewed-on: https://gerrit.libreoffice.org/11318 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/export.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 170d76f3f610..efd336d659b1 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -74,8 +74,8 @@ static OString lcl_GetListTyp( const sal_uInt16 nTyp, const bool bUpperCamelCase
extern "C" {
-FILE * init(int argc, char ** argv) {
-
+FILE * init(int argc, char ** argv)
+{
common::HandledArgs aArgs;
if ( !common::handleArguments(argc, argv, aArgs) )
{
@@ -109,7 +109,8 @@ int Parse( int nTyp, const char *pTokenText ){
return 1;
}
-void Close(){
+void Close()
+{
global::exporter->GetParseQueue()->Close();
global::exporter.reset();
// avoid nontrivial Export dtor being executed during exit
@@ -121,19 +122,12 @@ int WorkOnTokenSet( int nTyp, char *pTokenText )
return 1;
}
-} // extern
-
-extern "C" {
-
int SetError()
{
// set error at global instance of class Export
global::exporter->SetError();
return 1;
}
-}
-
-extern "C" {
int GetError()
{
@@ -142,7 +136,8 @@ int GetError()
return 1;
return sal_False;
}
-}
+
+} // extern "C"
// class ResData