summaryrefslogtreecommitdiff
path: root/svx/source/gengal
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 /svx/source/gengal
parenta90c5041656e490bebd8d373b6da11baf8dcbe24 (diff)
propogate exit code out to main
Diffstat (limited to 'svx/source/gengal')
-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 57c794778e09..ac7ab9460610 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;