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>
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
* simple example component implementing a counter
|
* simple example component implementing a counter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <iostream>
|
||||||
#include <rtl/ustring.hxx>
|
#include <rtl/ustring.hxx>
|
||||||
#include <uno/lbnames.h>
|
#include <uno/lbnames.h>
|
||||||
#include <cppuhelper/queryinterface.hxx>
|
#include <cppuhelper/queryinterface.hxx>
|
||||||
@@ -77,9 +77,9 @@ class MyCounterImpl
|
|||||||
public:
|
public:
|
||||||
MyCounterImpl( const Reference< XMultiServiceFactory > & xServiceManager )
|
MyCounterImpl( const Reference< XMultiServiceFactory > & xServiceManager )
|
||||||
: m_xServiceManager( xServiceManager ), m_nRefCount( 0 )
|
: m_xServiceManager( xServiceManager ), m_nRefCount( 0 )
|
||||||
{ printf( "< MyCounterImpl ctor called >\n" ); }
|
{ std::cout << "< MyCounterImpl ctor called >" << std::endl; }
|
||||||
~MyCounterImpl()
|
~MyCounterImpl()
|
||||||
{ printf( "< MyCounterImpl dtor called >\n" ); }
|
{ std::cout << "< MyCounterImpl dtor called >" << std::endl; }
|
||||||
|
|
||||||
// XInterface implementation
|
// XInterface implementation
|
||||||
virtual void SAL_CALL acquire() throw ()
|
virtual void SAL_CALL acquire() throw ()
|
||||||
|
Reference in New Issue
Block a user