diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-09 21:25:25 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-09 21:25:25 +0100 |
commit | 74ab9aea168bb5706e9c36aa6252f366926f5b41 (patch) | |
tree | f217557a04ef13774d925efb5a9ba293107ab604 | |
parent | 46c6c8bf076f5a007820e2ec0cea22b3ebd81e0b (diff) |
Remove unused 'err' argument.
-rw-r--r-- | plugingui/image.cc | 6 | ||||
-rw-r--r-- | plugingui/image.h | 2 |
2 files changed, 4 insertions, 4 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; } } diff --git a/plugingui/image.h b/plugingui/image.h index 791ade4..0decc22 100644 --- a/plugingui/image.h +++ b/plugingui/image.h @@ -45,7 +45,7 @@ public: Colour getPixel(size_t x, size_t y) const; private: - void setError(int err); + void setError(); void load(const char* data, size_t size); |