summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorHossein <hossein@libreoffice.org>2021-10-09 22:29:58 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-15 08:24:42 +0100
commitb56abc20eb198057d65ff40575a53cf1e29cf086 (patch)
tree8ddae8ed0063a3ba57bc19e72abe8d4b242ecb27 /odk
parent52ad81c74887e5c4d9a8c0a3cc8a11e3785cb72c (diff)
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.kaganski@collabora.com>
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/cpp/counter/counter.cxx6
1 files changed, 3 insertions, 3 deletions
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 ()