summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-15 12:35:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-15 13:22:23 +0200
commit6781d85afc790351d7535f82ccb8ec50b9672449 (patch)
treee12a6d5627ee3f1048cd26bd1910a41efbdd345a /cui
parent31c69056efd22df2634a545592a6a4d4c5c8b89f (diff)
Remove unnecessary cDelim vars
Change-Id: I7ee144881abd032262563d123778905e9c2d7857
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optpath.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx
index 4c5e101501cc..9959cbadf45a 100644
--- a/cui/source/options/optpath.cxx
+++ b/cui/source/options/optpath.cxx
@@ -147,12 +147,11 @@ static OUString Convert_Impl( const OUString& rValue )
if (rValue.isEmpty())
return aReturn;
- const sal_Unicode cDelim = MULTIPATH_DELIMITER;
sal_Int32 nPos = 0;
for (;;)
{
- OUString aValue = rValue.getToken( 0, cDelim, nPos );
+ OUString aValue = rValue.getToken( 0, MULTIPATH_DELIMITER, nPos );
INetURLObject aObj( aValue );
if ( aObj.GetProtocol() == INetProtocol::File )
aReturn += aObj.PathToFileName();
@@ -799,13 +798,12 @@ void SvxPathTabPage::SetPathList(
}
// save user paths
- char cDelim = MULTIPATH_DELIMITER;
- const sal_Int32 nCount = comphelper::string::getTokenCount(_rUserPath, cDelim);
+ const sal_Int32 nCount = comphelper::string::getTokenCount(_rUserPath, MULTIPATH_DELIMITER);
Sequence< OUString > aPathSeq( nCount );
OUString* pArray = aPathSeq.getArray();
sal_Int32 nPos = 0;
for ( sal_Int32 i = 0; i < nCount; ++i )
- pArray[i] = _rUserPath.getToken( 0, cDelim, nPos );
+ pArray[i] = _rUserPath.getToken( 0, MULTIPATH_DELIMITER, nPos );
Any aValue = makeAny( aPathSeq );
pImpl->m_xPathSettings->setPropertyValue(
sCfgName + POSTFIX_USER, aValue);