From ef513fd4b049b214a03fbe6e62a5ea43680a7a9b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 26 May 2017 10:58:42 +0200 Subject: remove unnecessary use of OString::getStr Change-Id: I0490efedf459190521f4339854b3394d57765fdb Reviewed-on: https://gerrit.libreoffice.org/38058 Tested-by: Jenkins Reviewed-by: Noel Grandin --- rsc/source/tools/rscdef.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rsc') diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx index 4ff0216cc547..f721e925fb5d 100644 --- a/rsc/source/tools/rscdef.cxx +++ b/rsc/source/tools/rscdef.cxx @@ -169,8 +169,7 @@ RscDefine * RscDefine::Search( const char * pSearch ) const COMPARE RscDefine::Compare( const NameNode * pSearch ) const { - int nCmp = strcmp( m_aName.getStr(), - static_cast(pSearch)->m_aName.getStr() ); + int nCmp = m_aName.compareTo( static_cast(pSearch)->m_aName ); if( nCmp < 0 ) return LESS; else if( nCmp > 0 ) @@ -182,7 +181,7 @@ COMPARE RscDefine::Compare( const NameNode * pSearch ) const // pSearch is a pointer to const char * COMPARE RscDefine::Compare( const void * pSearch ) const { - int nCmp = strcmp( m_aName.getStr(), static_cast(pSearch) ); + int nCmp = m_aName.compareTo( static_cast(pSearch) ); if( nCmp < 0 ) return LESS; -- cgit