[Libreoffice-commits] .: automation/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Dec 10 08:34:34 PST 2010


 automation/source/miniapp/testapp.cxx |    4 ++--
 automation/source/miniapp/testapp.hxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e0f0a26da104269535e3b8b3be1f8856fd761492
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 10 16:12:29 2010 +0000

    propogate exit code out to main

diff --git a/automation/source/miniapp/testapp.cxx b/automation/source/miniapp/testapp.cxx
index 9301ef2..4a22421 100644
--- a/automation/source/miniapp/testapp.cxx
+++ b/automation/source/miniapp/testapp.cxx
@@ -270,7 +270,7 @@ Reference< XContentProviderManager > InitializeUCB( void )
     return xUcb;
 }
 
-void MyApp::Main()
+int MyApp::Main()
 {
     Reference< XContentProviderManager > xUcb = InitializeUCB();
     LanguageType aRequestedLanguage;
@@ -299,6 +299,7 @@ void MyApp::Main()
     RemoteControl aRC;
 
     Execute();
+    return EXIT_SUCCESS;
 }
 
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/automation/source/miniapp/testapp.hxx b/automation/source/miniapp/testapp.hxx
index 60a66d8..db015ae 100644
--- a/automation/source/miniapp/testapp.hxx
+++ b/automation/source/miniapp/testapp.hxx
@@ -92,7 +92,7 @@ class MyApp : public Application
 
 public:
     MyApp();
-    void Main();
+    int Main();
 
     virtual void				Property( ApplicationProperty& );
     virtual PlugInDispatcher*	GetDispatcher();


More information about the Libreoffice-commits mailing list