comparison main/MainWindow.cpp @ 1754:076aca59192f

Use undefined behaviour sanitiser in debug mode
author Chris Cannam
date Thu, 07 Dec 2017 13:34:23 +0000
parents 81c28e5bc144
children 893f556cd5c9
comparison
equal deleted inserted replaced
1753:e4cf3ec06955 1754:076aca59192f
4425 4425
4426 Model *model = static_cast<Layer *>(currentTimeValueLayer)->getModel(); 4426 Model *model = static_cast<Layer *>(currentTimeValueLayer)->getModel();
4427 SparseTimeValueModel *tvm = 4427 SparseTimeValueModel *tvm =
4428 dynamic_cast<SparseTimeValueModel *>(model); 4428 dynamic_cast<SparseTimeValueModel *>(model);
4429 if (tvm) { 4429 if (tvm) {
4430 SparseTimeValueModel::Point point(frame, ev.getPitch() % 12, ""); 4430 SparseTimeValueModel::Point point(frame,
4431 float(ev.getPitch() % 12),
4432 "");
4431 SparseTimeValueModel::AddPointCommand *command = 4433 SparseTimeValueModel::AddPointCommand *command =
4432 new SparseTimeValueModel::AddPointCommand 4434 new SparseTimeValueModel::AddPointCommand
4433 (tvm, point, tr("Add Point")); 4435 (tvm, point, tr("Add Point"));
4434 CommandHistory::getInstance()->addCommand(command); 4436 CommandHistory::getInstance()->addCommand(command);
4435 } 4437 }