Kaydet (Commit) 1f2317b1 authored tarafından Matteo Casalin's avatar Matteo Casalin

Use indexOf instead of getTokenCount for simple check

Change-Id: Ic5397601267f1953379a13a3e1ac69813d363045
üst ff7d968b
...@@ -1160,7 +1160,7 @@ static bool lcl_IsOwnDocument( SwView& rView ) ...@@ -1160,7 +1160,7 @@ static bool lcl_IsOwnDocument( SwView& rView )
void SwView::ReadUserData( const OUString &rUserData, bool bBrowse ) 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 // For document without layout only in the onlinelayout or
// while forward/backward // while forward/backward
(!m_pWrtShell->IsNewLayout() || m_pWrtShell->GetViewOptions()->getBrowseMode() || bBrowse) ) (!m_pWrtShell->IsNewLayout() || m_pWrtShell->GetViewOptions()->getBrowseMode() || bBrowse) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment