Kaydet (Commit) 6781d85a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unnecessary cDelim vars

Change-Id: I7ee144881abd032262563d123778905e9c2d7857
üst 31c69056
...@@ -147,12 +147,11 @@ static OUString Convert_Impl( const OUString& rValue ) ...@@ -147,12 +147,11 @@ static OUString Convert_Impl( const OUString& rValue )
if (rValue.isEmpty()) if (rValue.isEmpty())
return aReturn; return aReturn;
const sal_Unicode cDelim = MULTIPATH_DELIMITER;
sal_Int32 nPos = 0; sal_Int32 nPos = 0;
for (;;) for (;;)
{ {
OUString aValue = rValue.getToken( 0, cDelim, nPos ); OUString aValue = rValue.getToken( 0, MULTIPATH_DELIMITER, nPos );
INetURLObject aObj( aValue ); INetURLObject aObj( aValue );
if ( aObj.GetProtocol() == INetProtocol::File ) if ( aObj.GetProtocol() == INetProtocol::File )
aReturn += aObj.PathToFileName(); aReturn += aObj.PathToFileName();
...@@ -799,13 +798,12 @@ void SvxPathTabPage::SetPathList( ...@@ -799,13 +798,12 @@ void SvxPathTabPage::SetPathList(
} }
// save user paths // save user paths
char cDelim = MULTIPATH_DELIMITER; const sal_Int32 nCount = comphelper::string::getTokenCount(_rUserPath, MULTIPATH_DELIMITER);
const sal_Int32 nCount = comphelper::string::getTokenCount(_rUserPath, cDelim);
Sequence< OUString > aPathSeq( nCount ); Sequence< OUString > aPathSeq( nCount );
OUString* pArray = aPathSeq.getArray(); OUString* pArray = aPathSeq.getArray();
sal_Int32 nPos = 0; sal_Int32 nPos = 0;
for ( sal_Int32 i = 0; i < nCount; ++i ) 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 ); Any aValue = makeAny( aPathSeq );
pImpl->m_xPathSettings->setPropertyValue( pImpl->m_xPathSettings->setPropertyValue(
sCfgName + POSTFIX_USER, aValue); sCfgName + POSTFIX_USER, aValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment