Kaydet (Commit) 261471af authored tarafından Matteo Casalin's avatar Matteo Casalin

Avoid getTokenCount in StandardHdl_Impl link (1)

Change-Id: I3a74980fec63085fe60f6f413c77b54dcd4df0ab
üst 02d1aaf1
......@@ -421,15 +421,19 @@ IMPL_LINK_NOARG_TYPED(SvxPathTabPage, StandardHdl_Impl, Button*, void)
sal_uInt16 i;
sal_uInt16 nOldCount = comphelper::string::getTokenCount(aOldPath, MULTIPATH_DELIMITER);
sal_uInt16 nIntCount = comphelper::string::getTokenCount(sInternal, MULTIPATH_DELIMITER);
for ( i = 0; i < nOldCount; ++i )
{
bool bFound = false;
OUString sOnePath = aOldPath.getToken( i, MULTIPATH_DELIMITER );
for ( sal_uInt16 j = 0; !bFound && j < nIntCount; ++j )
if ( !sInternal.isEmpty() )
{
if ( sInternal.getToken( j, MULTIPATH_DELIMITER ) == sOnePath )
bFound = true;
sal_Int32 nInternalPos = 0;
do
{
if ( sInternal.getToken( 0, MULTIPATH_DELIMITER, nInternalPos ) == sOnePath )
bFound = true;
}
while ( !bFound && nInternalPos >= 0 );
}
if ( !bFound )
{
......
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