From de7529b38f8ea9ee8198de1d82525a68cc6e89b8 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Thu, 25 Jul 2013 20:31:37 +0200 Subject: Do not use deprecated comphelper::string::getToken MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I35caf7a7806a36a7e0a8d4440e68bd682074136c Reviewed-on: https://gerrit.libreoffice.org/5184 Reviewed-by: Luboš Luňák Tested-by: Luboš Luňák --- sw/source/ui/misc/glosbib.cxx | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'sw/source/ui') diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx index 5b18557a334b..a6019e66da74 100644 --- a/sw/source/ui/misc/glosbib.cxx +++ b/sw/source/ui/misc/glosbib.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include #include #include #include @@ -128,8 +127,7 @@ void SwGlossaryGroupDlg::Apply() for (OUVector_t::const_iterator it(m_RemovedArr.begin()); it != m_RemovedArr.end(); ++it) { - const String sDelGroup = - ::comphelper::string::getToken(*it, 0, '\t'); + const String sDelGroup = it->getToken(0, '\t'); if( sDelGroup == aActGroup ) { //when the current group is deleted, the current group has to be relocated @@ -141,7 +139,7 @@ void SwGlossaryGroupDlg::Apply() } } String sMsg(SW_RES(STR_QUERY_DELETE_GROUP1)); - String sTitle( ::comphelper::string::getToken(*it, 1, '\t') ); + String sTitle( it->getToken(1, '\t') ); if(sTitle.Len()) sMsg += sTitle; else @@ -156,12 +154,9 @@ void SwGlossaryGroupDlg::Apply() for (OUVector_t::const_iterator it(m_RenamedArr.begin()); it != m_RenamedArr.end(); ++it) { - OUString const sOld( - ::comphelper::string::getToken(*it, 0, RENAME_TOKEN_DELIM)); - OUString sNew( - ::comphelper::string::getToken(*it, 1, RENAME_TOKEN_DELIM)); - OUString const sTitle( - ::comphelper::string::getToken(*it, 2, RENAME_TOKEN_DELIM)); + OUString const sOld(it->getToken(0, RENAME_TOKEN_DELIM)); + OUString sNew(it->getToken(1, RENAME_TOKEN_DELIM)); + OUString const sTitle(it->getToken(2, RENAME_TOKEN_DELIM)); pGlosHdl->RenameGroup(sOld, sNew, sTitle); if (it == m_RenamedArr.begin()) { @@ -259,8 +254,7 @@ IMPL_LINK( SwGlossaryGroupDlg, DeleteHdl, Button*, pButton ) for (OUVector_t::iterator it(m_RenamedArr.begin()); it != m_RenamedArr.end(); ++it) { - if (::comphelper::string::getToken(*it, 0, RENAME_TOKEN_DELIM) - == sEntry) + if (it->getToken(0, RENAME_TOKEN_DELIM) == sEntry) { m_RenamedArr.erase(it); bDelete = false; -- cgit