summaryrefslogtreecommitdiff
path: root/svx
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
commit3efa4300a5ab4b98e288f2108bdda93d997d897d (patch)
treebd30222fa31f51973e1bfd265e47b2594c3f82c5 /svx
parent2fa401ae62e276381e6ad1402ef90b31fbbfb8b5 (diff)
propogate exit code out to main
Diffstat (limited to 'svx')
-rw-r--r--svx/source/gengal/gengal.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx
index d319914611..edef15c43e 100644
--- a/svx/source/gengal/gengal.cxx
+++ b/svx/source/gengal/gengal.cxx
@@ -80,7 +80,7 @@ typedef ::std::list<rtl::OUString> FileNameList;
class GalApp : public Application
{
public:
- virtual void Main();
+ virtual int Main();
protected:
Reference<XMultiServiceFactory> xMSF;
@@ -275,7 +275,7 @@ void GalApp::InitUCB()
fprintf( stderr, "Failed to init content broker\n" );
}
-void GalApp::Main()
+int GalApp::Main()
{
bool bHelp = false;
rtl::OUString aPath, aDestDir;
@@ -310,10 +310,11 @@ void GalApp::Main()
if( bHelp )
{
PrintHelp();
- return;
+ return EXIT_SUCCESS;
}
createTheme( aName, aPath, aDestDir, nNumFrom, aFiles );
+ return EXIT_SUCCESS;
}
GalApp aGalApp;