diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-26 10:58:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-28 19:44:08 +0200 |
commit | ef513fd4b049b214a03fbe6e62a5ea43680a7a9b (patch) | |
tree | 82f2ce93bc8e5fde6dce8685b633c3d643c9f069 /rsc | |
parent | 826f1bca40a01f0a249d5b6cbb7c39c11638a060 (diff) |
remove unnecessary use of OString::getStr
Change-Id: I0490efedf459190521f4339854b3394d57765fdb
Reviewed-on: https://gerrit.libreoffice.org/38058
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/tools/rscdef.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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<const RscDefine *>(pSearch)->m_aName.getStr() ); + int nCmp = m_aName.compareTo( static_cast<const RscDefine *>(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<const char *>(pSearch) ); + int nCmp = m_aName.compareTo( static_cast<const char *>(pSearch) ); if( nCmp < 0 ) return LESS; |