forked from qt-creator/qt-creator
FontSettings: Change argument to be const-reference
Change-Id: I8fb22db04692e245819c8b4c778b31e127f1880e Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
ca6fa32606
commit
47295d267f
@@ -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())
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user