]> sigrok.org Git - pulseview.git/blobdiff - main.cpp
Replaced NULL with nullptr
[pulseview.git] / main.cpp
index 089deee756db87024ef5fe698a8be7335726debc..285c1535f3c20898307923de6c49ad08bcbfc899 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -87,7 +87,7 @@ int main(int argc, char *argv[])
                };
 
                const int c = getopt_long(argc, argv,
-                       "l:Vh?", long_options, NULL);
+                       "l:Vh?", long_options, nullptr);
                if (c == -1)
                        break;
 
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
 
 #ifdef ENABLE_DECODE
                // Initialise libsigrokdecode
-               if (srd_init(NULL) != SRD_OK) {
+               if (srd_init(nullptr) != SRD_OK) {
                        qDebug() << "ERROR: libsigrokdecode init failed.";
                        break;
                }