From 6583305dd70e31ae745d709b8cda8c7b68219735 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Fri, 8 Mar 2013 12:37:15 +0100 Subject: simplify compareTo (now correct) Change-Id: Ia4fd2f54d0bda71d472f46949500c0b23ff8e1b7 Signed-off-by: Stephan Bergmann --- rsc/source/rsc/rsc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rsc') diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx index 92da2002070c..007f4263069c 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.startsWith( repl->second ) ) // path matches { if( last_match == m_aReplacements.end() || last_match->second.getLength() < repl->second.getLength() ) last_match = repl; -- cgit