summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 11:47:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-23 14:38:14 +0200
commit5e028ad5dccc6ff1a9250baf2196f7a2f235e314 (patch)
tree6c6992e6fccf43b60141fb6ae32a6ad8e37cb84d /unotools
parentf905d6056606234ba53a26a3e4105ad3560d4b7b (diff)
simplify some string handling in tracing calls
Change-Id: I0fb76562429e691400a02216019c7f96791cf9b3 Reviewed-on: https://gerrit.libreoffice.org/39159 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/confignode.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx
index c0dc0043a6e0..f90a94d6dbf6 100644
--- a/unotools/source/config/confignode.cxx
+++ b/unotools/source/config/confignode.cxx
@@ -220,13 +220,7 @@ namespace utl
}
catch (NoSuchElementException&)
{
- #if OSL_DEBUG_LEVEL > 0
- OStringBuffer aBuf( 256 );
- aBuf.append("OConfigurationNode::removeNode: there is no element named!");
- aBuf.append( OUStringToOString( _rName, RTL_TEXTENCODING_ASCII_US ) );
- aBuf.append( "!" );
- OSL_FAIL(aBuf.getStr());
- #endif
+ SAL_WARN( "unotools", "OConfigurationNode::removeNode: there is no element named: " << _rName );
}
catch (WrappedTargetException&)
{
@@ -316,13 +310,7 @@ namespace utl
}
catch(const NoSuchElementException&)
{
- #if OSL_DEBUG_LEVEL > 0
- OStringBuffer aBuf( 256 );
- aBuf.append("OConfigurationNode::openNode: there is no element named ");
- aBuf.append( OUStringToOString( _rPath, RTL_TEXTENCODING_ASCII_US ) );
- aBuf.append("!");
- OSL_FAIL(aBuf.getStr());
- #endif
+ SAL_WARN( "unotools", "OConfigurationNode::openNode: there is no element named " << _rPath );
}
catch(Exception&)
{