]> vaikene.ee Git - evaf/blobdiff - src/main/GUI/exithandler.cpp
Warning fixes and copyright update.
[evaf] / src / main / GUI / exithandler.cpp
index 80c364c782c9a9e34acebee5da9c6cd1ba0adce6..0dc97ef319d6bf4e619a0bd7db7ba0751872ca09 100644 (file)
@@ -3,7 +3,7 @@
  * @brief Exit handlers for the eVaf main executable
  * @author Enar Vaikene
  *
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
  *
  * This file is part of the eVaf C++ cross-platform application development framework.
  *
@@ -115,11 +115,11 @@ bool eVaf::GUI::Internal::installExitHandler()
     struct sigaction sa;
     memset(&sa, 0, sizeof(sa));
     sa.sa_handler = signalHandler;
-    if (sigaction(SIGTERM, &sa, NULL) != 0) {
+    if (sigaction(SIGTERM, &sa, nullptr) != 0) {
         EVAF_FATAL_ERROR("sigaction() failed: %m");
         return false;
     }
-    if (sigaction(SIGHUP, &sa, NULL) != 0) {
+    if (sigaction(SIGHUP, &sa, nullptr) != 0) {
         EVAF_FATAL_ERROR("sigaction() failed: %m");
         return false;
     }