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 +#include #include #include #include @@ -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 ()