Move the contents of setup_layout() into create_layout() and make
[dcpomatic.git] / test / audio_filter_test.cc
index a258786374e0a22a1a3beea6b50f8017837da967..b5ac25af71cd878fd8cedebe2bb84b5339633e32 100644 (file)
@@ -31,7 +31,6 @@
 
 
 using std::make_shared;
-using std::shared_ptr;
 
 
 static void
@@ -64,7 +63,7 @@ BOOST_AUTO_TEST_CASE (audio_filter_impulse_kernel_test)
 {
        AudioFilter f (0.02);
 
-       f._ir.reserve(f._M + 1);
+       f._ir.resize(f._M + 1);
        f._ir[0] = 1;
        for (int i = 1; i <= f._M; ++i) {
                f._ir[i] = 0;