summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-08-20 13:50:06 +0200
committerMontel Laurent <[email protected]>2015-08-20 13:50:06 +0200
commitd79dc12b8114e75a1ba000d9474a0b5f6b634b47 (patch)
treec6f5e374300712f6b3af8f6d183b5d2fa49c7467
parent72f9e8dc9558950e8aa48cb97d5c8f311fb36e9f (diff)
Assign directly variable
-rw-r--r--messageviewer/viewer/viewer_p.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/messageviewer/viewer/viewer_p.cpp b/messageviewer/viewer/viewer_p.cpp
index edc9b49..3ff07b4 100644
--- a/messageviewer/viewer/viewer_p.cpp
+++ b/messageviewer/viewer/viewer_p.cpp
@@ -1589,15 +1589,13 @@ void ViewerPrivate::createActions()
return;
}
- KToggleAction *raction = 0;
-
// header style
KActionMenu *headerMenu = new KActionMenu(i18nc("View->", "&Headers"), this);
ac->addAction(QStringLiteral("view_headers"), headerMenu);
addHelpTextAction(headerMenu, i18n("Choose display style of message headers"));
QActionGroup *group = new QActionGroup(this);
- raction = new KToggleAction(i18nc("View->headers->", "&Enterprise Headers"), this);
+ KToggleAction *raction = new KToggleAction(i18nc("View->headers->", "&Enterprise Headers"), this);
ac->addAction(QStringLiteral("view_headers_enterprise"), raction);
connect(raction, &QAction::triggered, this, &ViewerPrivate::slotEnterpriseHeaders);
addHelpTextAction(raction, i18n("Show the list of headers in Enterprise style"));