diff layer/TimeInstantLayer.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/TimeInstantLayer.cpp	Mon Apr 30 09:07:08 2007 +0000
+++ b/layer/TimeInstantLayer.cpp	Mon Apr 30 13:36:23 2007 +0000
@@ -211,7 +211,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 <
@@ -519,7 +519,7 @@
 }
 
 void
-TimeInstantLayer::drawEnd(View *v, QMouseEvent *e)
+TimeInstantLayer::drawEnd(View *, QMouseEvent *e)
 {
     std::cerr << "TimeInstantLayer::drawEnd(" << e->x() << ")" << std::endl;
     if (!m_model || !m_editing) return;
@@ -575,7 +575,7 @@
 }
 
 void
-TimeInstantLayer::editEnd(View *v, QMouseEvent *e)
+TimeInstantLayer::editEnd(View *, QMouseEvent *e)
 {
     std::cerr << "TimeInstantLayer::editEnd(" << e->x() << ")" << std::endl;
     if (!m_model || !m_editing) return;
@@ -724,7 +724,7 @@
 }
 
 bool
-TimeInstantLayer::paste(const Clipboard &from, int frameOffset, bool interactive)
+TimeInstantLayer::paste(const Clipboard &from, int frameOffset, bool)
 {
     if (!m_model) return false;