[Libreoffice-commits] core.git: l10ntools/source
Douglas Mencken
dougmencken at gmail.com
Mon Sep 8 08:33:54 PDT 2014
l10ntools/source/export.cxx | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
New commits:
commit 181b1c0f7cfe6a26874705d64b5efe6ea93f6e93
Author: Douglas Mencken <dougmencken at gmail.com>
Date: Mon Sep 8 10:18:14 2014 -0400
l10ntools/source/export.cxx: improve style of code
Change-Id: Ieef44da0ab8f2d33faaf8c32970bb9d33df6750b
Reviewed-on: https://gerrit.libreoffice.org/11318
Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 170d76f..efd336d 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
More information about the Libreoffice-commits
mailing list