summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 41600a6..46d8bc5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -234,7 +234,7 @@ int main(int argc, char *argv[]) {
g_forLocationHandling = LOCATION_EXCLUSIVE;
} else {
qDebug() << "Invalid location mode: " << mode;
- QMessageBox::critical(NULL, "Error", "Invalid location mode: " + mode);
+ QMessageBox::critical(nullptr, "Error", "Invalid location mode: " + mode);
return 1;
}
}
@@ -247,7 +247,7 @@ int main(int argc, char *argv[]) {
g_templateHandling = LOCATION_BUMP;
} else {
qDebug() << "Invalid template mode: " << mode;
- QMessageBox::critical(NULL, "Error", "Invalid template mode: " + mode);
+ QMessageBox::critical(nullptr, "Error", "Invalid template mode: " + mode);
return 1;
}
}
@@ -339,7 +339,7 @@ int main(int argc, char *argv[]) {
// center dialog on primary screen
QPoint center = desktopRect.center();
- w.move(center.x() - w.width() * 0.5, center.y() - w.height() * 0.5);
+ w.move(center.x() - w.width() / 2, center.y() - w.height() / 2);
a.setActiveWindow(&w);
return a.exec();