summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-10 16:12:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-10 16:12:01 +0000
commitf7d3718400e1692276d7675c967c4b6cf2ee1ec4 (patch)
tree681d438f021dbbfb0afdfcbfc02863ca4d67a8e7 /basic
parenta90c5041656e490bebd8d373b6da11baf8dcbe24 (diff)
propogate exit code out to main
Diffstat (limited to 'basic')
-rw-r--r--basic/source/app/app.cxx3
-rw-r--r--basic/source/app/app.hxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/basic/source/app/app.cxx b/basic/source/app/app.cxx
index edc9c2d4670e..c3902d8a9cc7 100644
--- a/basic/source/app/app.cxx
+++ b/basic/source/app/app.cxx
@@ -228,7 +228,7 @@ static void ReplaceStringHookProc( UniString& rStr )
}
}
-void BasicApp::Main( )
+int BasicApp::Main( )
{
#ifdef DBG_UTIL
// Install filter for OSLAsserts
@@ -336,6 +336,7 @@ void BasicApp::Main( )
InfoBox( NULL, String::CreateFromAscii( "unknown Exception not caught" ) ).Execute();
throw;
}
+ return EXIT_SUCCESS;
}
void BasicApp::LoadIniFile()
diff --git a/basic/source/app/app.hxx b/basic/source/app/app.hxx
index e743a978db69..598ebcaaf93d 100644
--- a/basic/source/app/app.hxx
+++ b/basic/source/app/app.hxx
@@ -58,7 +58,7 @@ public:
// MenuBar* pMainMenu; // Hauptmenue
Accelerator* pMainAccel; // Acceleratoren
- void Main( );
+ int Main( );
void LoadIniFile();
void SetFocus();