X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=signalhandler.cpp;h=f262d6639fe6dc6582de6f7251c4cad58cc69e6b;hb=76ce6c7ae29059774c36bee27f6e09bfec94b358;hp=fbbcf225d8995cec5dca768f026d7d0a3434caf4;hpb=f32905530347e1020d5ce7959123cf797c9a4829;p=pulseview.git
diff --git a/signalhandler.cpp b/signalhandler.cpp
index fbbcf22..f262d66 100644
--- a/signalhandler.cpp
+++ b/signalhandler.cpp
@@ -14,15 +14,15 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see .
*/
#include "signalhandler.hpp"
-#include
-#include
-#include
+#include
+#include
+#include
+
#include
#include
@@ -42,8 +42,8 @@ bool SignalHandler::prepare_signals()
sigemptyset(&sig_action.sa_mask);
sig_action.sa_flags = SA_RESTART;
- if (sigaction(SIGINT, &sig_action, 0) != 0 ||
- sigaction(SIGTERM, &sig_action, 0) != 0) {
+ if (sigaction(SIGINT, &sig_action, nullptr) != 0 ||
+ sigaction(SIGTERM, &sig_action, nullptr) != 0) {
close(sockets_[0]);
close(sockets_[1]);
return false;
@@ -53,7 +53,7 @@ bool SignalHandler::prepare_signals()
}
SignalHandler::SignalHandler(QObject* parent) : QObject(parent),
- socket_notifier_(0)
+ socket_notifier_(nullptr)
{
socket_notifier_ = new QSocketNotifier(sockets_[1],
QSocketNotifier::Read, this);