Mercurial > hg > svgui
diff layer/LogColourScale.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 | 1a1448f7beb2 |
children | 3ca3b8fbbcee |
line wrap: on
line diff
--- a/layer/LogColourScale.cpp Tue Jun 03 11:10:52 2014 +0100 +++ b/layer/LogColourScale.cpp Tue Jun 17 15:18:06 2014 +0100 @@ -25,7 +25,7 @@ #include "view/View.h" int -LogColourScale::getWidth(View *v, +LogColourScale::getWidth(View *, QPainter &paint) { return paint.fontMetrics().width("-000.00") + 15; @@ -35,7 +35,7 @@ LogColourScale::paintVertical(View *v, const ColourScaleLayer *layer, QPainter &paint, - int x0, + int /* x0 */, float minlog, float maxlog) { @@ -48,8 +48,6 @@ char buffer[40]; - int w = getWidth(v, paint) + x0; - int boxx = 5, boxy = 5; if (layer->getScaleUnits() != "") { boxy += paint.fontMetrics().height();