diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2017-03-13 01:34:31 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2017-03-14 08:49:29 +0000 |
commit | b8565f19911bb84be16e09967ff029b8991f063d (patch) | |
tree | be812f6e68f6aafe6e90e3645b9a01510b934721 /tests/sudo/tst_sudo.cpp | |
parent | 6c73901c09acd25dc423d4b55f840e4c447f4332 (diff) |
Replace all 0-pointers with C++11 nullptr
Change-Id: I86eebd1bc81cab41ab4278c3223984c87ef1c96e
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'tests/sudo/tst_sudo.cpp')
-rw-r--r-- | tests/sudo/tst_sudo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/sudo/tst_sudo.cpp b/tests/sudo/tst_sudo.cpp index 92f25401..d318e931 100644 --- a/tests/sudo/tst_sudo.cpp +++ b/tests/sudo/tst_sudo.cpp @@ -226,7 +226,7 @@ class tst_Sudo : public QObject Q_OBJECT public: - tst_Sudo(QObject *parent = 0); + tst_Sudo(QObject *parent = nullptr); ~tst_Sudo(); private slots: @@ -248,7 +248,7 @@ private: return QDir(m_workDir.path()).absoluteFilePath(file); } - SudoClient *m_root = 0; + SudoClient *m_root = nullptr; TemporaryDir m_workDir; }; @@ -261,7 +261,7 @@ tst_Sudo::~tst_Sudo() if (m_workDir.isValid()) { ScopedRootPrivileges sudo; - detachLoopbacksAndUnmount(0, m_workDir.path()); + detachLoopbacksAndUnmount(nullptr, m_workDir.path()); recursiveOperation(m_workDir.path(), SafeRemove()); } } @@ -497,7 +497,7 @@ void tst_Sudo::image() QVERIFY(QFile::remove(imageFile)); } -static tst_Sudo *tstSudo = 0; +static tst_Sudo *tstSudo = nullptr; int main(int argc, char **argv) { |