mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-02-14 18:50:36 +01:00
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())
|
if (directory.exists())
|
||||||
{
|
{
|
||||||
QStringList colorDirectories = directory.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
|
QStringList colorDirectories = directory.entryList(QDir::Dirs | QDir::NoDotAndDotDot);
|
||||||
for (const QString colorDirectory : colorDirectories)
|
for (const QString& colorDirectory : colorDirectories)
|
||||||
{
|
{
|
||||||
QString colorDirectoryName = directory.absoluteFilePath(colorDirectory);
|
QString colorDirectoryName = directory.absoluteFilePath(colorDirectory);
|
||||||
directories << QDir::fromNativeSeparators(colorDirectoryName);
|
directories << QDir::fromNativeSeparators(colorDirectoryName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user