summaryrefslogtreecommitdiffstats
path: root/cppuhelper
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/component.cxx2
-rw-r--r--cppuhelper/source/tdmgr.cxx10
2 files changed, 3 insertions, 9 deletions
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 );
}
}
}