(svn r23195) -Codechange: if we really need to cast away constness, use const_cast

This commit is contained in:
rubidium
2011-11-12 08:37:12 +00:00
parent 4f87d2e88c
commit c9a7f572ec
4 changed files with 5 additions and 5 deletions

View File

@@ -275,7 +275,7 @@ static bool MakePNGImage(const char *name, ScreenshotCallback *callb, void *user
f = fopen(name, "wb");
if (f == NULL) return false;
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, (void *)name, png_my_error, png_my_warning);
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, const_cast<char *>(name), png_my_error, png_my_warning);
if (png_ptr == NULL) {
fclose(f);