odk/examples/cpp/counter/counter.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit b56abc20eb198057d65ff40575a53cf1e29cf086 Author: Hossein <hoss...@libreoffice.org> AuthorDate: Sat Oct 9 22:29:58 2021 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Nov 15 08:24:42 2021 +0100 Clean C++ SDK example "counter" * Use <iostream> instead of <stdio.h> Change-Id: I5cc70613c0b183c24bfa73b779dac3b382b31c93 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123328 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/odk/examples/cpp/counter/counter.cxx b/odk/examples/cpp/counter/counter.cxx index c45546889285..667c04a7057e 100644 --- a/odk/examples/cpp/counter/counter.cxx +++ b/odk/examples/cpp/counter/counter.cxx @@ -40,7 +40,7 @@ * simple example component implementing a counter */ -#include <stdio.h> +#include <iostream> #include <rtl/ustring.hxx> #include <uno/lbnames.h> #include <cppuhelper/queryinterface.hxx> @@ -77,9 +77,9 @@ class MyCounterImpl public: MyCounterImpl( const Reference< XMultiServiceFactory > & xServiceManager ) : m_xServiceManager( xServiceManager ), m_nRefCount( 0 ) - { printf( "< MyCounterImpl ctor called >\n" ); } + { std::cout << "< MyCounterImpl ctor called >" << std::endl; } ~MyCounterImpl() - { printf( "< MyCounterImpl dtor called >\n" ); } + { std::cout << "< MyCounterImpl dtor called >" << std::endl; } // XInterface implementation virtual void SAL_CALL acquire() throw ()