FontSettings: Change argument to be const-reference

Change-Id: I8fb22db04692e245819c8b4c778b31e127f1880e
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-03-08 22:34:00 +02:00
committed by Orgad Shaneh
parent ca6fa32606
commit 47295d267f
2 changed files with 2 additions and 2 deletions

View File

@@ -219,7 +219,7 @@ void FontSettings::addMixinStyle(QTextCharFormat &textCharFormat,
}; };
} }
QTextCharFormat FontSettings::toTextCharFormat(const TextStyles textStyles) const QTextCharFormat FontSettings::toTextCharFormat(const TextStyles &textStyles) const
{ {
auto textCharFormatIterator = m_textCharFormatCache.find(textStyles); auto textCharFormatIterator = m_textCharFormatCache.find(textStyles);
if (textCharFormatIterator != m_textCharFormatCache.end()) if (textCharFormatIterator != m_textCharFormatCache.end())

View File

@@ -67,7 +67,7 @@ public:
QVector<QTextCharFormat> toTextCharFormats(const QVector<TextStyle> &categories) const; QVector<QTextCharFormat> toTextCharFormats(const QVector<TextStyle> &categories) const;
QTextCharFormat toTextCharFormat(TextStyle category) const; QTextCharFormat toTextCharFormat(TextStyle category) const;
QTextCharFormat toTextCharFormat(const TextStyles textStyles) const; QTextCharFormat toTextCharFormat(const TextStyles &textStyles) const;
QString family() const; QString family() const;
void setFamily(const QString &family); void setFamily(const QString &family);