Kaydet (Commit) 181b1c0f authored tarafından Douglas Mencken's avatar Douglas Mencken Kaydeden (comit) Norbert Thiebaud

l10ntools/source/export.cxx: improve style of code

Change-Id: Ieef44da0ab8f2d33faaf8c32970bb9d33df6750b
Reviewed-on: https://gerrit.libreoffice.org/11318Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
Tested-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst 3fc1e691
...@@ -74,8 +74,8 @@ static OString lcl_GetListTyp( const sal_uInt16 nTyp, const bool bUpperCamelCase ...@@ -74,8 +74,8 @@ static OString lcl_GetListTyp( const sal_uInt16 nTyp, const bool bUpperCamelCase
extern "C" { extern "C" {
FILE * init(int argc, char ** argv) { FILE * init(int argc, char ** argv)
{
common::HandledArgs aArgs; common::HandledArgs aArgs;
if ( !common::handleArguments(argc, argv, aArgs) ) if ( !common::handleArguments(argc, argv, aArgs) )
{ {
...@@ -109,7 +109,8 @@ int Parse( int nTyp, const char *pTokenText ){ ...@@ -109,7 +109,8 @@ int Parse( int nTyp, const char *pTokenText ){
return 1; return 1;
} }
void Close(){ void Close()
{
global::exporter->GetParseQueue()->Close(); global::exporter->GetParseQueue()->Close();
global::exporter.reset(); global::exporter.reset();
// avoid nontrivial Export dtor being executed during exit // avoid nontrivial Export dtor being executed during exit
...@@ -121,19 +122,12 @@ int WorkOnTokenSet( int nTyp, char *pTokenText ) ...@@ -121,19 +122,12 @@ int WorkOnTokenSet( int nTyp, char *pTokenText )
return 1; return 1;
} }
} // extern
extern "C" {
int SetError() int SetError()
{ {
// set error at global instance of class Export // set error at global instance of class Export
global::exporter->SetError(); global::exporter->SetError();
return 1; return 1;
} }
}
extern "C" {
int GetError() int GetError()
{ {
...@@ -142,7 +136,8 @@ int GetError() ...@@ -142,7 +136,8 @@ int GetError()
return 1; return 1;
return sal_False; return sal_False;
} }
}
} // extern "C"
// class ResData // class ResData
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment