comparison layer/RegionLayer.cpp @ 1415:89d124ac9bfa

Avoid compiler warning
author Chris Cannam
date Mon, 21 Jan 2019 10:07:36 +0000
parents 24234307c9b2
children 2487521e857b
comparison
equal deleted inserted replaced
1412:79032214f79d 1415:89d124ac9bfa
876 if (!sampleRate) return; 876 if (!sampleRate) return;
877 877
878 // Profiler profiler("RegionLayer::paint", true); 878 // Profiler profiler("RegionLayer::paint", true);
879 879
880 int x0 = rect.left() - 40, x1 = rect.right(); 880 int x0 = rect.left() - 40, x1 = rect.right();
881 sv_frame_t frame0 = v->getFrameForX(x0);
882 sv_frame_t frame1 = v->getFrameForX(x1);
883 881
884 sv_frame_t wholeFrame0 = v->getFrameForX(0); 882 sv_frame_t wholeFrame0 = v->getFrameForX(0);
885 sv_frame_t wholeFrame1 = v->getFrameForX(v->getPaintWidth()); 883 sv_frame_t wholeFrame1 = v->getFrameForX(v->getPaintWidth());
886 884
887 RegionModel::PointList points(m_model->getPoints(wholeFrame0, wholeFrame1)); 885 RegionModel::PointList points(m_model->getPoints(wholeFrame0, wholeFrame1));