summaryrefslogtreecommitdiffstats
path: root/src/widget/wpushbutton.cpp
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2016-04-25 12:46:45 -0700
committerRJ Ryan <rryan@mixxx.org>2016-04-25 12:48:44 -0700
commitaf0714af69bcd371b9e588ce59d07f60e2a4410d (patch)
tree4b44259344fb2cd6007184a69fcd6f95247a406e /src/widget/wpushbutton.cpp
parent3592cdd57c8015f7c4552d0c643aabb6a657211c (diff)
Spring cleaning: Apply clang-tidy to src/widget.
Using LLVM 3.8.0: $ clang-tidy --fix --checks="*,-llvm-header-guard,-readability-implicit-bool-cast,-readability-else-after-return,-google-readability-todo" $(git ls src/widget | xargs) -- (flags to compile)
Diffstat (limited to 'src/widget/wpushbutton.cpp')
-rw-r--r--src/widget/wpushbutton.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/widget/wpushbutton.cpp b/src/widget/wpushbutton.cpp
index 7c2ce82032..857136f99a 100644
--- a/src/widget/wpushbutton.cpp
+++ b/src/widget/wpushbutton.cpp
@@ -26,12 +26,12 @@
#include <QPaintEvent>
#include <QApplication>
-#include "widget/wpixmapstore.h"
+#include "control/controlbehavior.h"
#include "controlobject.h"
#include "controlpushbutton.h"
-#include "control/controlbehavior.h"
#include "util/debug.h"
#include "util/math.h"
+#include "widget/wpixmapstore.h"
WPushButton::WPushButton(QWidget* pParent)
: WWidget(pParent),
@@ -48,8 +48,7 @@ WPushButton::WPushButton(QWidget* pParent, ControlPushButton::ButtonMode leftBut
setStates(0);
}
-WPushButton::~WPushButton() {
-}
+WPushButton::~WPushButton() = default;
void WPushButton::setup(QDomNode node, const SkinContext& context) {
// Number of states
@@ -114,7 +113,7 @@ void WPushButton::setup(QDomNode node, const SkinContext& context) {
state = state.nextSibling();
}
- ControlParameterWidgetConnection* leftConnection = NULL;
+ ControlParameterWidgetConnection* leftConnection = nullptr;
if (m_leftConnections.isEmpty()) {
if (!m_connections.isEmpty()) {
// If no left connection is set, the this is the left connection