summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-05-17 18:54:22 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-05-18 05:33:52 +0000
commit3aebc670e1816a8f4f0759e97d8f39b6aab05044 (patch)
treeaabce7a2757deb868d7e5b44301c12e310881ca1 /cppu
parentcac5ba9ac59a89c43c052c7bbb8e44fa86d86849 (diff)
Remove include stdio (part2)
Change-Id: Iae58d107d8df1c543a165086fb2b7c288e7121dd Reviewed-on: https://gerrit.libreoffice.org/15775 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/threadpool/thread.cxx1
-rw-r--r--cppu/source/threadpool/threadident.cxx2
-rw-r--r--cppu/source/threadpool/threadpool.cxx15
3 files changed, 2 insertions, 16 deletions
diff --git a/cppu/source/threadpool/thread.cxx b/cppu/source/threadpool/thread.cxx
index e1be210fefe3..d1d448f42906 100644
--- a/cppu/source/threadpool/thread.cxx
+++ b/cppu/source/threadpool/thread.cxx
@@ -20,7 +20,6 @@
#include <sal/config.h>
#include <cstdlib>
-#include <stdio.h>
#include <osl/diagnose.h>
#include <uno/threadpool.h>
diff --git a/cppu/source/threadpool/threadident.cxx b/cppu/source/threadpool/threadident.cxx
index ce7fdc0efc68..dcf6d1fe9475 100644
--- a/cppu/source/threadpool/threadident.cxx
+++ b/cppu/source/threadpool/threadident.cxx
@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <stdio.h>
-
#include <list>
#include <osl/mutex.hxx>
diff --git a/cppu/source/threadpool/threadpool.cxx b/cppu/source/threadpool/threadpool.cxx
index f910cba4c10e..5cfb7e63e8b1 100644
--- a/cppu/source/threadpool/threadpool.cxx
+++ b/cppu/source/threadpool/threadpool.cxx
@@ -21,7 +21,6 @@
#include <cassert>
#include <unordered_map>
-#include <stdio.h>
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
@@ -55,12 +54,7 @@ namespace cppu_threadpool
DisposedCallerAdmin::~DisposedCallerAdmin()
{
-#if OSL_DEBUG_LEVEL > 1
- if( !m_lst.empty() )
- {
- printf( "DisposedCallerList : %lu left\n" , static_cast<unsigned long>(m_lst.size( )));
- }
-#endif
+ SAL_WARN_IF( !m_lst.empty(), "cppu.threadpool", "DisposedCallerList : " << m_lst.size() << " left\n");
}
void DisposedCallerAdmin::dispose( sal_Int64 nDisposeId )
@@ -109,12 +103,7 @@ namespace cppu_threadpool
ThreadPool::~ThreadPool()
{
-#if OSL_DEBUG_LEVEL > 1
- if( m_mapQueue.size() )
- {
- printf( "ThreadIdHashMap : %lu left\n" , static_cast<unsigned long>(m_mapQueue.size()) );
- }
-#endif
+ SAL_WARN_IF( m_mapQueue.size(), "cppu.threadpool", "ThreadIdHashMap: " << m_mapQueue.size() << " left\n");
}
void ThreadPool::dispose( sal_Int64 nDisposeId )