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 | |
parent | 8970d1108a4ea87873eff374cd38b3dd17a7a264 (diff) |
#i160584# use SAL_IMPLEMENT_MAIN macro
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/DevelopersGuide/Components/CppComponent/TestCppComponent.cxx | 3 | ||||
-rw-r--r-- | odk/examples/cpp/counter/countermain.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/odk/examples/DevelopersGuide/Components/CppComponent/TestCppComponent.cxx b/odk/examples/DevelopersGuide/Components/CppComponent/TestCppComponent.cxx index afda5d3cdeba..dc080c3c92ce 100644 --- a/odk/examples/DevelopersGuide/Components/CppComponent/TestCppComponent.cxx +++ b/odk/examples/DevelopersGuide/Components/CppComponent/TestCppComponent.cxx @@ -39,6 +39,7 @@ *************************************************************************/ #include <stdio.h> +#include <sal/main.h> #include <cppuhelper/bootstrap.hxx> #include <com/sun/star/bridge/XUnoUrlResolver.hpp> #include <com/sun/star/frame/XComponentLoader.hpp> @@ -51,7 +52,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; using namespace com::sun::star::frame; -int SAL_CALL main( int, char ** ) +SAL_IMPLEMENT_MAIN(argc, argv) { try { 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\"!" ); |