mirror of https://github.com/JakubMelka/PDF4QT.git
Use QString reference instead of copy in loop
This commit is contained in:
parent
221587c751
commit
2ed31dcd2c
|
@ -1778,7 +1778,7 @@ PDFColorProfileIdentifiers PDFCMSManager::getExternalProfilesImpl() const
|
|||
if (directory.exists())
|
||||
{
|
||||
QStringList colorDirectories = directory.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
|
||||
for (const QString colorDirectory : colorDirectories)
|
||||
for (const QString& colorDirectory : colorDirectories)
|
||||
{
|
||||
QString colorDirectoryName = directory.absoluteFilePath(colorDirectory);
|
||||
directories << QDir::fromNativeSeparators(colorDirectoryName);
|
||||
|
|
Loading…
Reference in New Issue