From c3586b684c58e06cd80dea87d7681354acfec80b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 12 Dec 2016 16:31:57 +0200 Subject: OSL_TRACE->SAL in chart2..oox Change-Id: I133a6441824bfbefcfcda130119b5c5d706f86b2 Reviewed-on: https://gerrit.libreoffice.org/31907 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- cppuhelper/source/component.cxx | 2 +- cppuhelper/source/tdmgr.cxx | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/source/component.cxx b/cppuhelper/source/component.cxx index eab7ec571b20..17f799fc3c8c 100644 --- a/cppuhelper/source/component.cxx +++ b/cppuhelper/source/component.cxx @@ -204,7 +204,7 @@ void OComponentHelper::dispose() // in a multithreaded environment, it can't be avoided // that dispose is called twice. // However this condition is traced, because it MAY indicate an error. - OSL_TRACE( "OComponentHelper::dispose() - dispose called twice" ); + SAL_WARN("cppuhelper", "OComponentHelper::dispose() - dispose called twice" ); } } diff --git a/cppuhelper/source/tdmgr.cxx b/cppuhelper/source/tdmgr.cxx index 5b8ad45234df..d78260cb4a2c 100644 --- a/cppuhelper/source/tdmgr.cxx +++ b/cppuhelper/source/tdmgr.cxx @@ -592,18 +592,12 @@ static void SAL_CALL typelib_callback( catch (container::NoSuchElementException & exc) { (void) exc; // avoid warning about unused variable - OSL_TRACE( - "typelibrary type not available: %s", - OUStringToOString( - exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() ); + SAL_WARN("cppuhelper", "typelibrary type not available: " << exc.Message ); } catch (Exception & exc) { (void) exc; // avoid warning about unused variable - OSL_TRACE( - "%s", - OUStringToOString( - exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() ); + SAL_WARN("cppuhelper", exc.Message ); } } } -- cgit