Mercurial > hg > svgui
diff layer/Layer.h @ 805:1d526ba11a24 warnfix_no_size_t
Remove size_t's and fix warnings in layer/
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 15:18:06 +0100 |
parents | dd64efa0dac8 |
children | 4c8ca536b54f |
line wrap: on
line diff
--- a/layer/Layer.h Tue Jun 03 11:10:52 2014 +0100 +++ b/layer/Layer.h Tue Jun 17 15:18:06 2014 +0100 @@ -150,7 +150,7 @@ return ""; } - virtual QString getLabelPreceding(size_t /* frame */) const { + virtual QString getLabelPreceding(int /* frame */) const { return ""; } @@ -182,7 +182,7 @@ */ virtual bool snapToFeatureFrame(View * /* v */, int & /* frame */, - size_t &resolution, + int &resolution, SnapType /* snap */) const { resolution = 1; return false; @@ -206,7 +206,7 @@ */ virtual bool snapToSimilarFeature(View * /* v */, int & /* source frame */, - size_t &resolution, + int &resolution, SnapType /* snap */) const { resolution = 1; return false; @@ -254,7 +254,7 @@ */ virtual bool editOpen(View *, QMouseEvent *) { return false; } - virtual void moveSelection(Selection, size_t /* newStartFrame */) { } + virtual void moveSelection(Selection, int /* newStartFrame */) { } virtual void resizeSelection(Selection, Selection /* newSize */) { } virtual void deleteSelection(Selection) { } @@ -525,7 +525,7 @@ void modelChanged(); void modelCompletionChanged(); void modelAlignmentCompletionChanged(); - void modelChanged(size_t startFrame, size_t endFrame); + void modelChanged(int startFrame, int endFrame); void modelReplaced(); void layerParametersChanged(); @@ -538,8 +538,8 @@ protected: void connectSignals(const Model *); - virtual size_t alignToReference(View *v, size_t frame) const; - virtual size_t alignFromReference(View *v, size_t frame) const; + virtual int alignToReference(View *v, int frame) const; + virtual int alignFromReference(View *v, int frame) const; bool clipboardHasDifferentAlignment(View *v, const Clipboard &clip) const; struct MeasureRect {