[Libreoffice-commits] core.git: rsc/source
Tor Lillqvist
tml at collabora.com
Sat Oct 12 11:04:26 PDT 2013
rsc/source/prj/gui.cxx | 15 ---------------
1 file changed, 15 deletions(-)
New commits:
commit 0937d07cd5bbdc68fcae8127149ffa6c813d3a97
Author: Tor Lillqvist <tml at collabora.com>
Date: Sat Oct 12 21:03:36 2013 +0300
Simpligy: Bin odd atexit crack
Change-Id: Ib7e491ae66525b8ba2555b50fe7c9e1fed150987
diff --git a/rsc/source/prj/gui.cxx b/rsc/source/prj/gui.cxx
index 4535b56..a2d321e 100644
--- a/rsc/source/prj/gui.cxx
+++ b/rsc/source/prj/gui.cxx
@@ -23,16 +23,6 @@
#include <rscrsc.hxx>
#include <rscdb.hxx>
-static RscCompiler * pRscCompiler = NULL;
-#if defined( UNX ) || defined ( __GNUC__ ) || defined(__MINGW32__)
- void ExitProgram( void ){
-#else
- void cdecl ExitProgram( void ){
-#endif
- if( pRscCompiler )
- delete pRscCompiler;
-}
-
static RscVerbosity lcl_determineVerbosity( int argc, char ** argv )
{
for ( int i = 0; i < argc; ++i )
@@ -49,9 +39,6 @@ static RscVerbosity lcl_determineVerbosity( int argc, char ** argv )
int rsc2_main( int argc, char **argv )
{
-#ifndef UNX
- atexit( ExitProgram );
-#endif
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "debugging %s\n", argv[0] );
#endif
@@ -71,9 +58,7 @@ int rsc2_main( int argc, char **argv )
else{
RscCompiler* pCompiler = new RscCompiler( pCmdLine, pTypCont );
- pRscCompiler = pCompiler;
aError = pCompiler->Start();
- pRscCompiler = NULL;
delete pCompiler;
}
More information about the Libreoffice-commits
mailing list