summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMC Return <mc.return@gmx.net>2013-01-09 15:45:26 +0100
committerMC Return <mc.return@gmx.net>2013-01-09 15:45:26 +0100
commit775ae17f566590a0ff581e57ec3a09f554f0ef75 (patch)
treec3f01f00ab179901c191148b1ca7602bcf5dacba /unity-shared
parentd13687a6e8da7b106f7ecbe89f808747e7590c8a (diff)
Removed unused assignment of CAIRO_FORMAT_INVALID to format
(bzr r3022.1.10)
Diffstat (limited to 'unity-shared')
-rwxr-xr-xunity-shared/DashStyle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/unity-shared/DashStyle.cpp b/unity-shared/DashStyle.cpp
index a862145f7..c322ea151 100755
--- a/unity-shared/DashStyle.cpp
+++ b/unity-shared/DashStyle.cpp
@@ -1486,7 +1486,6 @@ void Style::Impl::DrawOverlay(cairo_t* cr,
int width = 0;
int height = 0;
int stride = 0;
- cairo_format_t format = CAIRO_FORMAT_INVALID;
unsigned char* buffer = NULL;
cairo_surface_t* surface = NULL;
cairo_t* blurred_cr = NULL;
@@ -1498,7 +1497,7 @@ void Style::Impl::DrawOverlay(cairo_t* cr,
width = cairo_image_surface_get_width(target);
height = cairo_image_surface_get_height(target);
stride = cairo_image_surface_get_stride(target);
- format = cairo_image_surface_get_format(target);
+ cairo_format_t format = cairo_image_surface_get_format(target);
// get buffer
buffer = (unsigned char*) calloc(1, height * stride);