summaryrefslogtreecommitdiffstats
path: root/core/polkit-tqt-subject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/polkit-tqt-subject.cpp')
-rw-r--r--core/polkit-tqt-subject.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/polkit-tqt-subject.cpp b/core/polkit-tqt-subject.cpp
index 3d9e99b7a..fe51e5265 100644
--- a/core/polkit-tqt-subject.cpp
+++ b/core/polkit-tqt-subject.cpp
@@ -36,7 +36,7 @@ namespace PolkitTQt
class Subject::Data : public TQShared
{
public:
- Data() : subject(NULL)
+ Data() : subject(nullptr)
{
}
@@ -108,7 +108,7 @@ Subject::~Subject()
bool Subject::isValid() const
{
- return (d->subject != NULL);
+ return (d->subject != nullptr);
}
PolkitSubject* Subject::subject() const
@@ -149,9 +149,9 @@ Subject Subject::fromString(const TQString &string)
return Subject();
}
- GError *error = NULL;
+ GError *error = nullptr;
PolkitSubject *polsub = polkit_subject_from_string(string.utf8().data(), &error);
- if (error != NULL)
+ if (error != nullptr)
{
tqWarning(TQString("Cannot create valid Subject from string: %1").arg(error->message));
return Subject();
@@ -229,12 +229,12 @@ UnixSessionSubject::UnixSessionSubject(const TQString &sessionId) : Subject()
UnixSessionSubject::UnixSessionSubject(TQ_LONG pid) : Subject()
{
- GError *error = NULL;
- setSubject(polkit_unix_session_new_for_process_sync(pid, NULL, &error));
- if (error != NULL)
+ GError *error = nullptr;
+ setSubject(polkit_unix_session_new_for_process_sync(pid, nullptr, &error));
+ if (error != nullptr)
{
tqWarning(TQString("Cannot create unix session subject from pid: %1").arg(error->message));
- setSubject(NULL);
+ setSubject(nullptr);
}
}