diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2009-11-05 12:27:28 +0000 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2009-11-05 12:27:28 +0000 |
commit | b7f5132b041b7e66d1403b04e12c5f9d34f318d1 (patch) | |
tree | ae818e71166c065a2b91cf25148a6e4a88076a21 /odk/examples/cpp/counter | |
parent | 8970d1108a4ea87873eff374cd38b3dd17a7a264 (diff) |
#i160584# use SAL_IMPLEMENT_MAIN macro
Diffstat (limited to 'odk/examples/cpp/counter')
-rw-r--r-- | odk/examples/cpp/counter/countermain.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odk/examples/cpp/counter/countermain.cxx b/odk/examples/cpp/counter/countermain.cxx index 5328f356124e..3a004d3be4cb 100644 --- a/odk/examples/cpp/counter/countermain.cxx +++ b/odk/examples/cpp/counter/countermain.cxx @@ -48,6 +48,7 @@ #include <stdio.h> +#include <sal/main.h> #include <rtl/ustring.hxx> #include <osl/diagnose.h> @@ -71,7 +72,7 @@ using namespace ::rtl; //======================================================================= -int SAL_CALL main(int argc, char **argv) +SAL_IMPLEMENT_MAIN(argc, argv) { Reference< XSimpleRegistry > xReg = createSimpleRegistry(); OSL_ENSURE( xReg.is(), "### cannot get service instance of \"com.sun.star.regiystry.SimpleRegistry\"!" ); |