From ca15d0aa95fec76ce41c72ed747894969c978986 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 19 Sep 2013 17:59:27 +0200 Subject: Apply static pattern to TextEditorSetting Change-Id: I4e6f573d893c0aa2bb4ca9812fc8db2961dac172 Reviewed-by: Tobias Hunger --- src/plugins/bazaar/bazaarcommitwidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/bazaar') diff --git a/src/plugins/bazaar/bazaarcommitwidget.cpp b/src/plugins/bazaar/bazaarcommitwidget.cpp index 34e075c3d4b..3b25d4f08b0 100644 --- a/src/plugins/bazaar/bazaarcommitwidget.cpp +++ b/src/plugins/bazaar/bazaarcommitwidget.cpp @@ -49,8 +49,7 @@ namespace Internal { // Retrieve the comment char format from the text editor. static QTextCharFormat commentFormat() { - const TextEditor::FontSettings settings = TextEditor::TextEditorSettings::instance()->fontSettings(); - return settings.toTextCharFormat(TextEditor::C_COMMENT); + return TextEditor::TextEditorSettings::fontSettings().toTextCharFormat(TextEditor::C_COMMENT); } // Highlighter for Bazaar submit messages. Make the first line bold, indicates -- cgit v1.2.3