Mercurial > hg > svcore
comparison data/fileio/test/CSVStreamWriterTest.h @ 1454:743c38b209d0
Fix compiler warnings
author | Chris Cannam |
---|---|
date | Tue, 17 Apr 2018 10:54:48 +0100 |
parents | deabf9fd3d28 |
children | 0d4f1fcad97a |
comparison
equal
deleted
inserted
replaced
1453:4b496a258782 | 1454:743c38b209d0 |
---|---|
254 std::ostringstream oss; | 254 std::ostringstream oss; |
255 MultiSelection regions; | 255 MultiSelection regions; |
256 regions.addSelection({0, 2}); | 256 regions.addSelection({0, 2}); |
257 regions.addSelection({4, 6}); | 257 regions.addSelection({4, 6}); |
258 regions.addSelection({16, 18}); | 258 regions.addSelection({16, 18}); |
259 qDebug("End frame: %lld", mwm.getEndFrame()); | 259 qDebug("End frame: %lld", (long long int)mwm.getEndFrame()); |
260 const std::string expectedOutput { | 260 const std::string expectedOutput { |
261 "0,0,0\n" | 261 "0,0,0\n" |
262 "1,0,0\n" | 262 "1,0,0\n" |
263 "4,1,1\n" | 263 "4,1,1\n" |
264 "5,1,1\n" | 264 "5,1,1\n" |
305 // NB. removed end line break | 305 // NB. removed end line break |
306 const auto expectedOutput = notes.toDelimitedDataString(",").trimmed(); | 306 const auto expectedOutput = notes.toDelimitedDataString(",").trimmed(); |
307 | 307 |
308 StubReporter reporter { []() -> bool { return false; } }; | 308 StubReporter reporter { []() -> bool { return false; } }; |
309 std::ostringstream oss; | 309 std::ostringstream oss; |
310 qDebug("End frame: %lld", notes.getEndFrame()); | 310 qDebug("End frame: %lld", (long long int)notes.getEndFrame()); |
311 qDebug("Write streaming\n"); | 311 qDebug("Write streaming\n"); |
312 const auto wroteSparseModel = CSVStreamWriter::writeInChunks( | 312 const auto wroteSparseModel = CSVStreamWriter::writeInChunks( |
313 oss, | 313 oss, |
314 notes, | 314 notes, |
315 &reporter, | 315 &reporter, |