summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorJuergen Schmidt <jsc@openoffice.org>2009-11-05 12:18:43 +0000
committerJuergen Schmidt <jsc@openoffice.org>2009-11-05 12:18:43 +0000
commit8970d1108a4ea87873eff374cd38b3dd17a7a264 (patch)
tree9e0f982588b3cbe5dba165ddbd4e68c61d0a321f /odk
parente7581052d07d307b8c79266b0a9857ad6e183cde (diff)
#i160584# use SAL_IMPLEMENT_MAIN macro
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx4
-rw-r--r--odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx4
-rw-r--r--odk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/SimpleBootstrap_cpp.cxx4
3 files changed, 9 insertions, 3 deletions
diff --git a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx
index 009a2f382f1c..a887390de839 100644
--- a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx
+++ b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx
@@ -40,6 +40,8 @@
#include <stdio.h>
+#include <sal/main.h>
+
#include <cppuhelper/bootstrap.hxx>
#include <com/sun/star/bridge/XUnoUrlResolver.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
@@ -51,7 +53,7 @@ using namespace com::sun::star::bridge;
using namespace rtl;
using namespace cppu;
-int main( )
+SAL_IMPLEMENT_MAIN()
{
// create the initial component context
Reference< XComponentContext > rComponentContext =
diff --git a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
index 5fd930c0fb94..ef35e3be855d 100644
--- a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
+++ b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
@@ -40,6 +40,8 @@
#include <stdio.h>
+#include <sal/main.h>
+
#include <rtl/ustrbuf.hxx>
#include <rtl/string.hxx>
@@ -47,7 +49,7 @@ using rtl::OUString;
using rtl::OUStringBuffer;
using rtl::OString;
-int main( int argc, char * argv [] )
+SAL_IMPLEMENT_MAIN()
{
// string concatination
diff --git a/odk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/SimpleBootstrap_cpp.cxx b/odk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/SimpleBootstrap_cpp.cxx
index f7c3a78a8dab..a56178fb2b07 100644
--- a/odk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/SimpleBootstrap_cpp.cxx
+++ b/odk/examples/DevelopersGuide/ProfUNO/SimpleBootstrap_cpp/SimpleBootstrap_cpp.cxx
@@ -39,6 +39,8 @@
*************************************************************************/
#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>
@@ -50,7 +52,7 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::frame;
-int SAL_CALL main( int argc, char **argv )
+SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
{
try
{