use constructor syntax
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 2 Oct 2017 16:37:20 +0000 (12:37 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 2 Oct 2017 16:43:34 +0000 (12:43 -0400)
libs/ardour/disk_io.cc

index 147a5b83baec26b7e12d8102043d9f8d6d973363..82b32d571ec851b5e2c32661271e2208817cd971 100644 (file)
@@ -350,9 +350,8 @@ DiskIOProcessor::use_playlist (DataType dt, boost::shared_ptr<Playlist> playlist
 }
 
 DiskIOProcessor::ChannelInfo::ChannelInfo (samplecnt_t bufsize)
+       : buf (new RingBufferNPT<Sample> (bufsize))
 {
-       buf = new RingBufferNPT<Sample> (bufsize);
-
        /* touch the ringbuffer buffer, which will cause
           them to be mapped into locked physical RAM if
           we're running with mlockall(). this doesn't do