diff layer/TimeValueLayer.cpp @ 248:28c8e8e3c537

* Fix many compile warnings, remove some debug output
author Chris Cannam
date Mon, 30 Apr 2007 13:36:23 +0000
parents 34bbbcb3c01f
children e175ade2d6b0
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp	Mon Apr 30 09:07:08 2007 +0000
+++ b/layer/TimeValueLayer.cpp	Mon Apr 30 13:36:23 2007 +0000
@@ -336,7 +336,7 @@
 
     if (prevPoints.empty()) {
 	usePoints = nextPoints;
-    } else if (prevPoints.begin()->frame < v->getStartFrame() &&
+    } else if (long(prevPoints.begin()->frame) < v->getStartFrame() &&
 	       !(nextPoints.begin()->frame > v->getEndFrame())) {
 	usePoints = nextPoints;
     } else if (nextPoints.begin()->frame - frame <
@@ -550,8 +550,6 @@
     bool log;
     getScaleExtents(v, min, max, log);
 
-    float logthresh = -80;
-
     if (min > max) std::swap(min, max);
     if (max == min) max = min + 1;
 
@@ -783,7 +781,7 @@
 }
 
 int
-TimeValueLayer::getVerticalScaleWidth(View *v, QPainter &paint) const
+TimeValueLayer::getVerticalScaleWidth(View *, QPainter &paint) const
 {
     int w = paint.fontMetrics().width("-000.000");
     if (m_plotStyle == PlotSegmentation) return w + 20;
@@ -791,7 +789,7 @@
 }
 
 void
-TimeValueLayer::paintVerticalScale(View *v, QPainter &paint, QRect rect) const
+TimeValueLayer::paintVerticalScale(View *v, QPainter &paint, QRect) const
 {
     if (!m_model) return;
 
@@ -966,7 +964,7 @@
 }
 
 void
-TimeValueLayer::drawEnd(View *v, QMouseEvent *e)
+TimeValueLayer::drawEnd(View *, QMouseEvent *)
 {
 //    std::cerr << "TimeValueLayer::drawEnd(" << e->x() << "," << e->y() << ")" << std::endl;
     if (!m_model || !m_editing) return;
@@ -1021,7 +1019,7 @@
 }
 
 void
-TimeValueLayer::editEnd(View *v, QMouseEvent *e)
+TimeValueLayer::editEnd(View *, QMouseEvent *)
 {
 //    std::cerr << "TimeValueLayer::editEnd(" << e->x() << "," << e->y() << ")" << std::endl;
     if (!m_model || !m_editing) return;