Commit 00609ad6 authored by Harald Sitter's avatar Harald Sitter 🌼

use nullptr instead of NULL

Summary: more modern and silences gcc Wzero-as-null-pointer-constant

Test Plan: builds

Reviewers: aacid

Reviewed By: aacid

Subscribers: kde-edu

Tags: #kde_edu

Differential Revision: https://phabricator.kde.org/D17478
parent 98fb0b6b
......@@ -41,7 +41,7 @@
int main(int argc, char * argv[])
{
// init random generator
qsrand(time(NULL));
qsrand(time(nullptr));
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
......
......@@ -30,7 +30,7 @@
/** constructor of class task */
Task::Task()
{
qsrand(time(NULL));
qsrand(time(nullptr));
#ifdef DEBUG
qDebug() << "constructor task";
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment