diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-24 09:42:45 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-24 09:42:45 +0000 |
commit | eb8343ead1354b9ee0c47e9853ad5a58cdfc78b3 (patch) | |
tree | 8256761ce8f02261d42cd4c736de1527498df098 /bridges/inc | |
parent | 74c28a0328dd8e927970c2dd69ea6049797771a0 (diff) |
INTEGRATION: CWS sb56 (1.4.50); FILE MERGED
2006/07/07 08:58:57 sb 1.4.50.1: #i67105# Made code compile (warning-free) with debug=x.
Diffstat (limited to 'bridges/inc')
-rw-r--r-- | bridges/inc/bridges/remote/counter.hxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bridges/inc/bridges/remote/counter.hxx b/bridges/inc/bridges/remote/counter.hxx index 816f9ebe124d..a601de0a2392 100644 --- a/bridges/inc/bridges/remote/counter.hxx +++ b/bridges/inc/bridges/remote/counter.hxx @@ -4,9 +4,9 @@ * * $RCSfile: counter.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-07 22:11:53 $ + * last change: $Author: ihi $ $Date: 2006-08-24 10:42:45 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -38,7 +38,7 @@ #if OSL_DEBUG_LEVEL > 1 struct MyCounter { - MyCounter( sal_Char *pName ) : + MyCounter( sal_Char const *pName ) : m_nCounter( 0 ), m_pName ( pName ) { @@ -46,7 +46,9 @@ struct MyCounter ~MyCounter() { if( m_nCounter ) { - printf( "%s : %d left\n", m_pName , m_nCounter ); + printf( + "%s : %ld left\n", m_pName, + sal::static_int_cast< long >(m_nCounter) ); } } void acquire() @@ -56,7 +58,7 @@ struct MyCounter sal_Int32 m_nCounter; - sal_Char *m_pName; + sal_Char const *m_pName; }; #endif |