forked from qt-creator/qt-creator
Editor: avoid FontSettings copies
Change-Id: I1ffd9aa21a38404bdf5e2f402b61ce57a023e83d Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Internal {
|
||||
// Retrieve the comment char format from the text editor.
|
||||
static QTextCharFormat commentFormat()
|
||||
{
|
||||
const TextEditor::FontSettings settings = TextEditor::TextEditorSettings::instance()->fontSettings();
|
||||
const TextEditor::FontSettings &settings = TextEditor::TextEditorSettings::instance()->fontSettings();
|
||||
return settings.toTextCharFormat(TextEditor::C_COMMENT);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user