summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2017-09-30 21:52:24 +0000
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-01 15:58:22 +0200
commit50da5d0d1c5bdfbb9a2006e77a02519d0f39740f (patch)
treee37dfd06bfafbfe69fe8845fecf4cf34900ce598 /svtools
parent22e748e68a87e1b470146eacad374c7dfef74f5a (diff)
simplify some OUString compareTo calls
to either startsWith or == or != Change-Id: I595dd9d89d32134827980c4ba10f88584430137d Reviewed-on: https://gerrit.libreoffice.org/42988 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/inettbc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index 7ca9f391471c..0db56b44794b 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -407,7 +407,7 @@ void SvtMatchContext_Impl::ReadFolder( const OUString& rURL,
if (
!nMatchLen ||
(bExectMatch && aMatchName == aTitle) ||
- (!bExectMatch && aMatchName.compareTo(aTitle, nMatchLen) == 0)
+ (!bExectMatch && aTitle.startsWith(aMatchName))
)
{
// all names fit if matchstring is empty