[Libreoffice-commits] core.git: sw/source
Matteo Casalin
matteo.casalin at yahoo.com
Wed Jul 31 02:59:01 PDT 2013
sw/source/ui/misc/glosbib.cxx | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
New commits:
commit de7529b38f8ea9ee8198de1d82525a68cc6e89b8
Author: Matteo Casalin <matteo.casalin at yahoo.com>
Date: Thu Jul 25 20:31:37 2013 +0200
Do not use deprecated comphelper::string::getToken
Change-Id: I35caf7a7806a36a7e0a8d4440e68bd682074136c
Reviewed-on: https://gerrit.libreoffice.org/5184
Reviewed-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Tested-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index 5b18557..a6019e6 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 <comphelper/string.hxx>
#include <tools/urlobj.hxx>
#include <tools/stream.hxx>
#include <vcl/msgbox.hxx>
@@ -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;
More information about the Libreoffice-commits
mailing list