summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-02 13:21:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-02 14:22:21 +0100
commitf8922b67a4dc1ff0b889f33d2407584aed5d2e36 (patch)
treec3dbbc81468176b79e03b8222bb174fc24a30e16 /svtools
parentc7531408b3ef4b2d284edf35ed983c23e7585231 (diff)
Remove unnecessary comphelper::string::getToken
Change-Id: I49192637121441b9a1980350b9bb32cd995d4386
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/printoptions.cxx3
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx2
2 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/config/printoptions.cxx b/svtools/source/config/printoptions.cxx
index 04d0980e5c1a..ebd578c7dddc 100644
--- a/svtools/source/config/printoptions.cxx
+++ b/svtools/source/config/printoptions.cxx
@@ -130,9 +130,8 @@ SvtPrintOptions_Impl::SvtPrintOptions_Impl(const OUString& rConfigRoot)
if (m_xCfg.is())
{
using comphelper::string::getTokenCount;
- using comphelper::string::getToken;
sal_Int32 nTokenCount = getTokenCount(rConfigRoot, '/');
- OUString sTok = getToken(rConfigRoot, nTokenCount - 1, '/');
+ OUString sTok = rConfigRoot.getToken(nTokenCount - 1, '/');
m_xCfg->getByName(sTok) >>= m_xNode;
}
}
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index 98c9277444ba..f94ec3041bd2 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -654,7 +654,7 @@ void AssignmentPersistentData::Commit()
"AddressBookSourceDialog::AddressBookSourceDialog: inconsistence between logical and UI field names!");
m_pImpl->aLogicalFieldNames.reserve(nAdjustedTokenCount);
for (sal_Int32 i = 0; i<nAdjustedTokenCount; ++i)
- m_pImpl->aLogicalFieldNames.push_back(comphelper::string::getToken(sLogicalFieldNames, i, ';'));
+ m_pImpl->aLogicalFieldNames.push_back(sLogicalFieldNames.getToken(i, ';'));
PostUserEvent(LINK(this, AddressBookSourceDialog, OnDelayedInitialize));
// so the dialog will at least show up before we do the loading of the