@@ -483,7 +483,7 @@ void QgsApplication::registerOgrDrivers()
483
483
}
484
484
}
485
485
486
- QString QgsApplication::absolutePathToRelativePath ( const QString& apath, const QString& targetPath )
486
+ QString QgsApplication::absolutePathToRelativePath ( QString aPath, QString targetPath )
487
487
{
488
488
#if defined( Q_OS_WIN )
489
489
const Qt::CaseSensitivity cs = Qt::CaseInsensitive;
@@ -506,7 +506,7 @@ QString QgsApplication::absolutePathToRelativePath( const QString& apath, const
506
506
#endif
507
507
508
508
QStringList targetElems = targetPath.split ( " /" , QString::SkipEmptyParts );
509
- QStringList aPathElems = apath .split ( " /" , QString::SkipEmptyParts );
509
+ QStringList aPathElems = aPath .split ( " /" , QString::SkipEmptyParts );
510
510
511
511
targetElems.removeAll ( " ." );
512
512
aPathElems.removeAll ( " ." );
@@ -524,8 +524,8 @@ QString QgsApplication::absolutePathToRelativePath( const QString& apath, const
524
524
525
525
if ( n == 0 )
526
526
{
527
- // no common parts; might not even by a file
528
- return apath ;
527
+ // no common parts; might not even be a file
528
+ return aPath ;
529
529
}
530
530
531
531
if ( targetElems.size () > 0 )
@@ -546,7 +546,7 @@ QString QgsApplication::absolutePathToRelativePath( const QString& apath, const
546
546
return aPathElems.join ( " /" );
547
547
}
548
548
549
- QString QgsApplication::relativePathToAbsolutePath ( const QString& rpath, const QString& targetPath )
549
+ QString QgsApplication::relativePathToAbsolutePath ( QString rpath, QString targetPath )
550
550
{
551
551
// relative path should always start with ./ or ../
552
552
if ( !rpath.startsWith ( " ./" ) && !rpath.startsWith ( " ../" ) )
@@ -555,7 +555,7 @@ QString QgsApplication::relativePathToAbsolutePath( const QString& rpath, const
555
555
}
556
556
557
557
#if defined(Q_OS_WIN)
558
- rPath .replace ( " \\ " , " /" );
558
+ rpath .replace ( " \\ " , " /" );
559
559
targetPath.replace ( " \\ " , " /" );
560
560
561
561
bool uncPath = targetPath.startsWith ( " //" );
0 commit comments