summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-04-12 11:57:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-04-12 11:57:03 +0200
commit78120c41f0c34cd962c5000c0f562692dafb64f7 (patch)
tree81d87ac362e7848eb9f212e38501a8b4905f6d62 /odk
parenta5ee2d5a2086594429deb6b2dea0220c2e0f5a5e (diff)
Missing return
Change-Id: I76db8e6e1460141ee4ef1bed10ea46c2b402b249
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/cpp/counter/countermain.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/odk/examples/cpp/counter/countermain.cxx b/odk/examples/cpp/counter/countermain.cxx
index 008af0dd6c74..87a4de7e4fdb 100644
--- a/odk/examples/cpp/counter/countermain.cxx
+++ b/odk/examples/cpp/counter/countermain.cxx
@@ -41,6 +41,9 @@
*************************************************************************
*************************************************************************/
+#include "sal/config.h"
+
+#include <cstdlib>
#include <stdio.h>
#include <sal/main.h>
@@ -94,11 +97,12 @@ SAL_IMPLEMENT_MAIN()
}
Reference< XComponent >::query( xContext )->dispose();
+ return EXIT_SUCCESS;
} catch( Exception& e) {
printf("Error: caught exception:\n %s\n",
OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US).getStr());
- exit(1);
+ return EXIT_FAILURE;
}
}