]> sigrok.org Git - pulseview.git/blobdiff - test/data/decoderstack.cpp
Replaced NULL with nullptr
[pulseview.git] / test / data / decoderstack.cpp
index c169e1ff2271f1d779665486ab23cdc43b94089f..70ed7e03695c434e5b31bec049a468c1e8ee3ac2 100644 (file)
@@ -21,7 +21,7 @@
 #include <libsigrokdecode/libsigrokdecode.h> /* First, so we avoid a _POSIX_C_SOURCE warning. */
 #include <boost/test/unit_test.hpp>
 
-#include <libsigrok/libsigrok.hpp>
+#include <libsigrokcxx/libsigrokcxx.hpp>
 
 #include "../../pv/data/decoderstack.hpp"
 #include "../../pv/devicemanager.hpp"
@@ -39,12 +39,12 @@ BOOST_AUTO_TEST_SUITE(DecoderStackTest)
 
 BOOST_AUTO_TEST_CASE(TwoDecoderStack)
 {
-       sr_context *ctx = NULL;
+       sr_context *ctx = nullptr;
 
        BOOST_REQUIRE(sr_init(&ctx) == SR_OK);
        BOOST_REQUIRE(ctx);
 
-       BOOST_REQUIRE(srd_init(NULL) == SRD_OK);
+       BOOST_REQUIRE(srd_init(nullptr) == SRD_OK);
 
        srd_decoder_load_all();