summaryrefslogtreecommitdiff
path: root/plugingui/image.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-09 21:25:25 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-09 21:25:25 +0100
commit74ab9aea168bb5706e9c36aa6252f366926f5b41 (patch)
treef217557a04ef13774d925efb5a9ba293107ab604 /plugingui/image.cc
parent46c6c8bf076f5a007820e2ec0cea22b3ebd81e0b (diff)
Remove unused 'err' argument.
Diffstat (limited to 'plugingui/image.cc')
-rw-r--r--plugingui/image.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugingui/image.cc b/plugingui/image.cc
index ecd16ac..52c5c9f 100644
--- a/plugingui/image.cc
+++ b/plugingui/image.cc
@@ -52,7 +52,7 @@ Image::~Image()
free(image_data);
}
-void Image::setError(int err)
+void Image::setError()
{
Resource rc(":png_error");
@@ -86,8 +86,8 @@ void Image::load(const char* data, size_t size)
if(res != 0)
{
- ERR(image, "[read_png_file] Error during init_io");
- setError(3);
+ ERR(image, "Error in lodepng_decode32: %d", res);
+ setError();
return;
}
}