compress_png: void* => const void*

This commit is contained in:
Konstantin Käfer
2015-06-24 17:38:58 +02:00
parent 9991f9da54
commit 55ef14f3a8
3 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ const static bool png_version_check = []() {
namespace mbgl {
namespace util {
std::string compress_png(int width, int height, void *rgba) {
std::string compress_png(int width, int height, const void *rgba) {
png_voidp error_ptr = 0;
png_structp png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, error_ptr, NULL, NULL);
if (!png_ptr) {