Mercurial > hg > svgui
diff layer/Layer.cpp @ 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 | 1a0dfcbffaf1 |
children | 4c8ca536b54f |
line wrap: on
line diff
--- a/layer/Layer.cpp Tue Jun 03 11:10:52 2014 +0100 +++ b/layer/Layer.cpp Tue Jun 17 15:18:06 2014 +0100 @@ -51,8 +51,8 @@ connect(model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged())); - connect(model, SIGNAL(modelChanged(size_t, size_t)), - this, SIGNAL(modelChanged(size_t, size_t))); + connect(model, SIGNAL(modelChanged(int, int)), + this, SIGNAL(modelChanged(int, int))); connect(model, SIGNAL(completionChanged()), this, SIGNAL(modelCompletionChanged())); @@ -165,8 +165,8 @@ return true; } -size_t -Layer::alignToReference(View *v, size_t frame) const +int +Layer::alignToReference(View *v, int frame) const { const Model *m = getModel(); SVDEBUG << "Layer::alignToReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : 0) << endl; @@ -177,8 +177,8 @@ } } -size_t -Layer::alignFromReference(View *v, size_t frame) const +int +Layer::alignFromReference(View *v, int frame) const { const Model *m = getModel(); SVDEBUG << "Layer::alignFromReference(" << frame << "): model = " << m << ", alignment reference = " << (m ? m->getAlignmentReference() : 0) << endl; @@ -405,7 +405,7 @@ } void -Layer::measureDoubleClick(View *v, QMouseEvent *e) +Layer::measureDoubleClick(View *, QMouseEvent *) { // nothing, in the base class }