diff options
author | hjk <[email protected]> | 2013-09-19 17:59:27 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2013-09-20 10:28:22 +0200 |
commit | ca15d0aa95fec76ce41c72ed747894969c978986 (patch) | |
tree | 51fb42c1230f6a7ef43ad685e90134f916db16f0 /src/plugins/bazaar/bazaarcommitwidget.cpp | |
parent | bd10688a624ccca8ee34650915c4054138e4c35d (diff) |
Apply static pattern to TextEditorSetting
Change-Id: I4e6f573d893c0aa2bb4ca9812fc8db2961dac172
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/bazaar/bazaarcommitwidget.cpp')
-rw-r--r-- | src/plugins/bazaar/bazaarcommitwidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 |