]> sigrok.org Git - pulseview.git/blobdiff - test/data/decoderstack.cpp
Remove unused "using" declarations.
[pulseview.git] / test / data / decoderstack.cpp
index 96f8b4a0ee4ebf6bb41200a269bf871ead274d3c..3bb2f3eb310d52f525845142cd52baf51e109a8a 100644 (file)
  * 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 <http://www.gnu.org/licenses/>.
  */
 
+#if 0
+
 #include <libsigrokdecode/libsigrokdecode.h> /* First, so we avoid a _POSIX_C_SOURCE warning. */
 #include <boost/test/unit_test.hpp>
 
@@ -34,17 +35,16 @@ using pv::view::DecodeTrace;
 using std::shared_ptr;
 using std::vector;
 
-#if 0
 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();