summaryrefslogtreecommitdiff
path: root/rsc/source/rsc
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 05:41:38 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-08 05:42:05 +0100
commit19020191cbf3e3c7a7bf98d0958d86d931ae687b (patch)
tree63533a5d8d9929602cd894391a0e4b232451ba69 /rsc/source/rsc
parent9c34ac28d6b7a8297674f4334c43d93a064f3f3d (diff)
simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
Diffstat (limited to 'rsc/source/rsc')
-rw-r--r--rsc/source/rsc/rsc.cxx2
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;