summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-11-07 23:36:34 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-11-10 22:04:05 +0100
commit1f2317b130d62614b10115527a4cbcfd0c8c3896 (patch)
tree6b274bd036d73baab435f1b692e4c6776599fd01 /sw/source/uibase/uiview
parentff7d968bd7c0d697ae23b9954918dbec1b641cd4 (diff)
Use indexOf instead of getTokenCount for simple check
Change-Id: Ic5397601267f1953379a13a3e1ac69813d363045
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r--sw/source/uibase/uiview/view.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index 39b1cb7081b3..2e048d72e617 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -1160,7 +1160,7 @@ static bool lcl_IsOwnDocument( SwView& rView )
void SwView::ReadUserData( const OUString &rUserData, bool bBrowse )
{
- if ( comphelper::string::getTokenCount(rUserData, ';') > 1 &&
+ if ( rUserData.indexOf(';')>=0 && // more than one token
// For document without layout only in the onlinelayout or
// while forward/backward
(!m_pWrtShell->IsNewLayout() || m_pWrtShell->GetViewOptions()->getBrowseMode() || bBrowse) )