@@ -260,19 +260,18 @@ BOOST_AUTO_TEST_CASE(streams_buffered_file)
260260 // The buffer size (second arg) must be greater than the rewind
261261 // amount (third arg).
262262 try {
263- CBufferedFile bfbad ( file, 25 , 25 , 222 , 333 ) ;
263+ CBufferedFile bfbad{ file, 25 , 25 , 333 } ;
264264 BOOST_CHECK (false );
265265 } catch (const std::exception& e) {
266266 BOOST_CHECK (strstr (e.what (),
267267 " Rewind limit must be less than buffer size" ) != nullptr );
268268 }
269269
270270 // The buffer is 25 bytes, allow rewinding 10 bytes.
271- CBufferedFile bf ( file, 25 , 10 , 222 , 333 ) ;
271+ CBufferedFile bf{ file, 25 , 10 , 333 } ;
272272 BOOST_CHECK (!bf.eof ());
273273
274- // These two members have no functional effect.
275- BOOST_CHECK_EQUAL (bf.GetType (), 222 );
274+ // This member has no functional effect.
276275 BOOST_CHECK_EQUAL (bf.GetVersion (), 333 );
277276
278277 uint8_t i;
@@ -392,7 +391,7 @@ BOOST_AUTO_TEST_CASE(streams_buffered_file_skip)
392391 rewind (file);
393392
394393 // The buffer is 25 bytes, allow rewinding 10 bytes.
395- CBufferedFile bf ( file, 25 , 10 , 222 , 333 ) ;
394+ CBufferedFile bf{ file, 25 , 10 , 333 } ;
396395
397396 uint8_t i;
398397 // This is like bf >> (7-byte-variable), in that it will cause data
@@ -446,7 +445,7 @@ BOOST_AUTO_TEST_CASE(streams_buffered_file_rand)
446445
447446 size_t bufSize = InsecureRandRange (300 ) + 1 ;
448447 size_t rewindSize = InsecureRandRange (bufSize);
449- CBufferedFile bf ( file, bufSize, rewindSize, 222 , 333 ) ;
448+ CBufferedFile bf{ file, bufSize, rewindSize, 333 } ;
450449 size_t currentPos = 0 ;
451450 size_t maxPos = 0 ;
452451 for (int step = 0 ; step < 100 ; ++step) {
0 commit comments