# HG changeset patch # User Chris Cannam # Date 1426008225 0 # Node ID 251dd0abc7b7c53bfbdb09e585f2036c5e0ab085 # Parent 4a578a360011e1bca3a5885e15835564e398a200 More type fixes. We now build with -Wconversion, on this platform (64-bit Linux) at least. diff -r 4a578a360011 -r 251dd0abc7b7 layer/Layer.h --- a/layer/Layer.h Tue Mar 10 13:22:10 2015 +0000 +++ b/layer/Layer.h Tue Mar 10 17:23:45 2015 +0000 @@ -150,7 +150,7 @@ return ""; } - virtual QString getLabelPreceding(int /* frame */) const { + virtual QString getLabelPreceding(sv_frame_t /* frame */) const { return ""; } diff -r 4a578a360011 -r 251dd0abc7b7 layer/RegionLayer.cpp --- a/layer/RegionLayer.cpp Tue Mar 10 13:22:10 2015 +0000 +++ b/layer/RegionLayer.cpp Tue Mar 10 17:23:45 2015 +0000 @@ -371,7 +371,7 @@ } QString -RegionLayer::getLabelPreceding(int frame) const +RegionLayer::getLabelPreceding(sv_frame_t frame) const { if (!m_model) return ""; RegionModel::PointList points = m_model->getPreviousPoints(frame); diff -r 4a578a360011 -r 251dd0abc7b7 layer/RegionLayer.h --- a/layer/RegionLayer.h Tue Mar 10 13:22:10 2015 +0000 +++ b/layer/RegionLayer.h Tue Mar 10 17:23:45 2015 +0000 @@ -45,7 +45,7 @@ virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const; virtual QString getFeatureDescription(View *v, QPoint &) const; - virtual QString getLabelPreceding(int) const; + virtual QString getLabelPreceding(sv_frame_t) const; virtual bool snapToFeatureFrame(View *v, sv_frame_t &frame, int &resolution, diff -r 4a578a360011 -r 251dd0abc7b7 layer/TimeInstantLayer.cpp --- a/layer/TimeInstantLayer.cpp Tue Mar 10 13:22:10 2015 +0000 +++ b/layer/TimeInstantLayer.cpp Tue Mar 10 17:23:45 2015 +0000 @@ -201,7 +201,7 @@ } QString -TimeInstantLayer::getLabelPreceding(int frame) const +TimeInstantLayer::getLabelPreceding(sv_frame_t frame) const { if (!m_model) return ""; SparseOneDimensionalModel::PointList points = m_model->getPreviousPoints(frame); diff -r 4a578a360011 -r 251dd0abc7b7 layer/TimeInstantLayer.h --- a/layer/TimeInstantLayer.h Tue Mar 10 13:22:10 2015 +0000 +++ b/layer/TimeInstantLayer.h Tue Mar 10 17:23:45 2015 +0000 @@ -35,7 +35,7 @@ virtual void paint(View *v, QPainter &paint, QRect rect) const; - virtual QString getLabelPreceding(int) const; + virtual QString getLabelPreceding(sv_frame_t) const; virtual QString getFeatureDescription(View *v, QPoint &) const; virtual bool snapToFeatureFrame(View *v, sv_frame_t &frame, diff -r 4a578a360011 -r 251dd0abc7b7 layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Tue Mar 10 13:22:10 2015 +0000 +++ b/layer/TimeValueLayer.cpp Tue Mar 10 17:23:45 2015 +0000 @@ -574,7 +574,7 @@ } QString -TimeValueLayer::getLabelPreceding(int frame) const +TimeValueLayer::getLabelPreceding(sv_frame_t frame) const { if (!m_model) return ""; SparseTimeValueModel::PointList points = m_model->getPreviousPoints(frame); diff -r 4a578a360011 -r 251dd0abc7b7 layer/TimeValueLayer.h --- a/layer/TimeValueLayer.h Tue Mar 10 13:22:10 2015 +0000 +++ b/layer/TimeValueLayer.h Tue Mar 10 17:23:45 2015 +0000 @@ -43,7 +43,7 @@ virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const; virtual QString getFeatureDescription(View *v, QPoint &) const; - virtual QString getLabelPreceding(int) const; + virtual QString getLabelPreceding(sv_frame_t) const; virtual bool snapToFeatureFrame(View *v, sv_frame_t &frame, int &resolution,