diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-10 16:11:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-10 16:32:54 +0000 |
commit | 56dd29dbd60005d3dc5d1929e8d7049364418c10 (patch) | |
tree | 05d618061bd7dc0f6bfea5916962535645b9a6f8 /padmin/source/pamain.cxx | |
parent | XLSX VML Export fixes. (diff) | |
download | core-56dd29dbd60005d3dc5d1929e8d7049364418c10.tar.gz core-56dd29dbd60005d3dc5d1929e8d7049364418c10.zip |
propogate exit code out to main
Diffstat (limited to 'padmin/source/pamain.cxx')
-rw-r--r-- | padmin/source/pamain.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/padmin/source/pamain.cxx b/padmin/source/pamain.cxx index 7bf9afd2d718..2c389ebe5d93 100644 --- a/padmin/source/pamain.cxx +++ b/padmin/source/pamain.cxx @@ -59,7 +59,7 @@ using namespace comphelper; class MyApp : public Application { public: - void Main(); + int Main(); virtual USHORT Exception( USHORT nError ); static void ReadStringHook( String& ); @@ -94,7 +94,7 @@ USHORT MyApp::Exception( USHORT nError ) return 0; } -void MyApp::Main() +int MyApp::Main() { PADialog* pPADialog; @@ -153,7 +153,7 @@ void MyApp::Main() BOOL bQuitApp; if( !InitAccessBridge( true, bQuitApp ) ) if( bQuitApp ) - return; + return EXIT_FAILURE; } // initialize test-tool library (if available) @@ -174,6 +174,7 @@ void MyApp::Main() */ ::ucbhelper::ContentBroker::deinitialize(); + return EXIT_SUCCESS; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |