summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-01-27 19:46:18 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-02-04 21:57:41 +0100
commitf0c7e840b02511d1fffb44ee9fc31b23b1fbb538 (patch)
tree258f79c5dbbc5ae62c8d8eabad4d9129b4b9d4bb
parenta56cc4e993cd5aa7dd9375777a94b09b6a4f8c6a (diff)
Use indexed getToken()
Change-Id: I8484a6a6314d86026fd634e5c770443941aced48 Reviewed-on: https://gerrit.libreoffice.org/67310 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
-rw-r--r--sw/source/uibase/uiview/view.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index eefb9ed9ee9c..1d96f6c64206 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -1241,8 +1241,9 @@ void SwView::ReadUserData( const OUString &rUserData, bool bBrowse )
//apply information from print preview - if available
if( !m_sNewCursorPos.isEmpty() )
{
- long nXTmp = m_sNewCursorPos.getToken( 0, ';' ).toInt32(),
- nYTmp = m_sNewCursorPos.getToken( 1, ';' ).toInt32();
+ sal_Int32 nIdx{ 0 };
+ const long nXTmp = m_sNewCursorPos.getToken( 0, ';', nIdx ).toInt32();
+ const long nYTmp = m_sNewCursorPos.getToken( 0, ';', nIdx ).toInt32();
Point aCursorPos2( nXTmp, nYTmp );
bSelectObj = m_pWrtShell->IsObjSelectable( aCursorPos2 );