diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-08 09:03:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-08 09:03:10 +0100 |
commit | 3d4723f80a37e719359ad78ad063bc39ac28cd32 (patch) | |
tree | 87963e60947a5d61854d733dccd3779bad05545b /rsc/source | |
parent | Assert OUStringBuffer::copy preconditions (diff) | |
download | core-3d4723f80a37e719359ad78ad063bc39ac28cd32.tar.gz core-3d4723f80a37e719359ad78ad063bc39ac28cd32.zip |
Revert "simplify some compareTo"
This reverts commit 19020191cbf3e3c7a7bf98d0958d86d931ae687b,
s1.compareTo(s2, length-of-s2)
is *not* equivalent to
s1 == s2
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 fbaa6592657c..92da2002070c 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 == repl->second ) // path matches + if( rIn.compareTo( repl->second, repl->second.getLength() ) == 0 ) // path matches { if( last_match == m_aReplacements.end() || last_match->second.getLength() < repl->second.getLength() ) last_match = repl; |