summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-12-15 16:04:01 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-12-15 16:04:01 +0100
commitb98b779401433a3c7146aa8f9750c64e60c46e93 (patch)
tree556a929bf82179b0ab9f1681126fbed1c43a5d9d /vcl/unx/gtk3
parent74fcda22f78c73eb38473bc202aebd6584ab9c6c (diff)
Some cppcheck cleaning in vcl
Change-Id: Ie8fc421d4b9cc7340d5c634e3e2593795bf2be68
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 7d99c32e7ce8..210e50ba43fa 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -966,7 +966,6 @@ void GtkSalGraphics::renderAreaToPix( cairo_t *cr,
long ax = region->x;
long ay = region->y;
long awidth = region->width;
- long aheight = region->height;
/* Get tje cairo surface and the data */
cairo_surface_t* surface = cairo_get_target(cr);
@@ -979,7 +978,7 @@ void GtkSalGraphics::renderAreaToPix( cairo_t *cr,
unsigned char *src = data.get();
src += (int)ay * nStride + (int)ax * 3;
awidth = MIN (region->width, size.getX() - ax);
- aheight = MIN (region->height, size.getY() - ay);
+ long aheight = MIN (region->height, size.getY() - ay);
for (int y = 0; y < aheight; ++y)
{