diff options
author | Michele Calgaro <[email protected]> | 2021-12-28 20:45:45 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-12-28 20:45:45 +0900 |
commit | 82b07f1a3cc29b9785c292174343b464a774a722 (patch) | |
tree | 7a3501a01cf6e6d645929063ac601f4d3eb91edb /examples/PkExample.cpp | |
parent | 416bed9bc124e24cc1351c7d8e5810ca7570a023 (diff) | |
download | polkit-tqt-82b07f1a3cc29b9785c292174343b464a774a722.tar.gz polkit-tqt-82b07f1a3cc29b9785c292174343b464a774a722.zip |
Code improvements based on c++11 standard (ranged for loops and nullptr).
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'examples/PkExample.cpp')
-rw-r--r-- | examples/PkExample.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/PkExample.cpp b/examples/PkExample.cpp index 4491dadd3..99c0e641f 100644 --- a/examples/PkExample.cpp +++ b/examples/PkExample.cpp @@ -48,12 +48,12 @@ using namespace PolkitTQt; using namespace PolkitTQt::Gui; -PkExample::PkExample() : TQMainWindow(0, "Polkit tqt example application", WDestructiveClose) +PkExample::PkExample() : TQMainWindow(nullptr, "Polkit tqt example application", WDestructiveClose) { TQWidget *privateLayoutWidget = new TQWidget(this, "qt_central_widget"); setCentralWidget(privateLayoutWidget); - grid = new TQGridLayout(0, 9, 1, 0, 6, "grid"); + grid = new TQGridLayout(nullptr, 9, 1, 0, 6, "grid"); grid->setColSpacing(0, 700); grid->setColSpacing(1, 200); |