summaryrefslogtreecommitdiff
path: root/test/resampler_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-21 01:14:06 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-21 01:14:06 +0100
commit5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f (patch)
tree769dca1358e35017ce5a5b3ab2dfafe2b24d61ed /test/resampler_test.cc
parent4e83acad0c2a5c528709a175a80261b8147d3b49 (diff)
Use make_shared<>.
Diffstat (limited to 'test/resampler_test.cc')
-rw-r--r--test/resampler_test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/resampler_test.cc b/test/resampler_test.cc
index fb4b98861..cb5cddc9e 100644
--- a/test/resampler_test.cc
+++ b/test/resampler_test.cc
@@ -23,14 +23,16 @@
* to the number of samples it generates.
*/
-#include <boost/test/unit_test.hpp>
#include "lib/audio_buffers.h"
#include "lib/resampler.h"
+#include <boost/test/unit_test.hpp>
+#include <boost/make_shared.hpp>
#include <iostream>
using std::pair;
using std::cout;
using boost::shared_ptr;
+using boost::make_shared;
static void
resampler_test_one (int from, int to)
@@ -42,7 +44,7 @@ resampler_test_one (int from, int to)
/* XXX: no longer checks anything */
for (int64_t i = 0; i < N; i += 1000) {
- shared_ptr<AudioBuffers> a (new AudioBuffers (1, 1000));
+ shared_ptr<AudioBuffers> a = make_shared<AudioBuffers> (1, 1000);
a->make_silent ();
shared_ptr<const AudioBuffers> r = resamp.run (a);
}