From 354f911559cf17a322ba130dbdc3231dbfd41320 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Mon, 2 Feb 2015 07:44:47 +0100 Subject: [PATCH] not necessary to use a static class --- editor/kmcomposewin.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/editor/kmcomposewin.cpp b/editor/kmcomposewin.cpp index f44521966..f4d2ec873 100644 --- a/editor/kmcomposewin.cpp +++ b/editor/kmcomposewin.cpp @@ -3530,19 +3530,22 @@ void KMComposeWin::addExtraCustomHeaders( const QMap &heade void KMComposeWin::slotSentenceCase() { QTextCursor textCursor = mComposerBase->editor()->textCursor(); - PimCommon::EditorUtil::sentenceCase(textCursor); + PimCommon::EditorUtil editorUtil; + editorUtil.sentenceCase(textCursor); } void KMComposeWin::slotUpperCase() { + PimCommon::EditorUtil editorUtil; QTextCursor textCursor = mComposerBase->editor()->textCursor(); - PimCommon::EditorUtil::upperCase(textCursor); + editorUtil.upperCase(textCursor); } void KMComposeWin::slotLowerCase() { QTextCursor textCursor = mComposerBase->editor()->textCursor(); - PimCommon::EditorUtil::lowerCase(textCursor); + PimCommon::EditorUtil editorUtil; + editorUtil.lowerCase(textCursor); } void KMComposeWin::slotExternalEditorStarted()