diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 05:41:38 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-03-08 05:42:05 +0100 |
commit | 19020191cbf3e3c7a7bf98d0958d86d931ae687b (patch) | |
tree | 63533a5d8d9929602cd894391a0e4b232451ba69 /rsc/source | |
parent | 9c34ac28d6b7a8297674f4334c43d93a064f3f3d (diff) |
simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
Diffstat (limited to 'rsc/source')
-rw-r--r-- | rsc/source/rsc/rsc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx index 92da2002070c..fbaa6592657c 100644 --- a/rsc/source/rsc/rsc.cxx +++ b/rsc/source/rsc/rsc.cxx @@ -345,7 +345,7 @@ OString RscCmdLine::substitutePaths( const OString& rIn ) // search for longest replacement match for( std::list< std::pair< OString, OString > >::const_iterator repl = m_aReplacements.begin(); repl != m_aReplacements.end(); ++repl ) { - if( rIn.compareTo( repl->second, repl->second.getLength() ) == 0 ) // path matches + if( rIn == repl->second ) // path matches { if( last_match == m_aReplacements.end() || last_match->second.getLength() < repl->second.getLength() ) last_match = repl; |