diff --git a/src/plugins/texteditor/fontsettings.cpp b/src/plugins/texteditor/fontsettings.cpp index 845be96af42..5b3402e4b5a 100644 --- a/src/plugins/texteditor/fontsettings.cpp +++ b/src/plugins/texteditor/fontsettings.cpp @@ -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); if (textCharFormatIterator != m_textCharFormatCache.end()) diff --git a/src/plugins/texteditor/fontsettings.h b/src/plugins/texteditor/fontsettings.h index 4daddfdd631..68fb62d241a 100644 --- a/src/plugins/texteditor/fontsettings.h +++ b/src/plugins/texteditor/fontsettings.h @@ -67,7 +67,7 @@ public: QVector toTextCharFormats(const QVector &categories) const; QTextCharFormat toTextCharFormat(TextStyle category) const; - QTextCharFormat toTextCharFormat(const TextStyles textStyles) const; + QTextCharFormat toTextCharFormat(const TextStyles &textStyles) const; QString family() const; void setFamily(const QString &family);