aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/breakhandler.h
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2018-07-23 22:28:49 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2018-07-25 12:52:43 +0000
commit0558db7b54a60297444ff3a9a0d49651383bf825 (patch)
treedc7bc8757ebda56fc687b3605a3276f9449eff6d /src/plugins/debugger/breakhandler.h
parentbabf038ce8f9174578545df843ff183a1583fd08 (diff)
Debugger: Modernize
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: I91a6874f0d7b94e9079ab4ef07c23c60c80be9c0 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/breakhandler.h')
-rw-r--r--src/plugins/debugger/breakhandler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/debugger/breakhandler.h b/src/plugins/debugger/breakhandler.h
index 100ca69b81..09461ba081 100644
--- a/src/plugins/debugger/breakhandler.h
+++ b/src/plugins/debugger/breakhandler.h
@@ -50,10 +50,10 @@ class Breakpoint
Q_DECLARE_TR_FUNCTIONS(Debugger::Internal::BreakHandler)
public:
- Breakpoint() {}
+ Breakpoint() = default;
bool isValid() const;
- operator const void *() const { return isValid() ? this : 0; }
+ operator const void *() const { return isValid() ? this : nullptr; }
bool operator!() const { return !isValid(); }
uint hash() const;
@@ -157,7 +157,7 @@ private:
inline uint qHash(const Debugger::Internal::Breakpoint &b) { return b.hash(); }
-typedef QList<Breakpoint> Breakpoints;
+using Breakpoints = QList<Breakpoint>;
using BreakModel = Utils::TreeModel<Utils::TypedTreeItem<BreakpointItem>, BreakpointItem, LocationItem>;