diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-04-12 11:57:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-04-12 11:57:03 +0200 |
commit | 78120c41f0c34cd962c5000c0f562692dafb64f7 (patch) | |
tree | 81d87ac362e7848eb9f212e38501a8b4905f6d62 /odk/examples | |
parent | a5ee2d5a2086594429deb6b2dea0220c2e0f5a5e (diff) |
Missing return
Change-Id: I76db8e6e1460141ee4ef1bed10ea46c2b402b249
Diffstat (limited to 'odk/examples')
-rw-r--r-- | odk/examples/cpp/counter/countermain.cxx | 6 |
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; } } |