summaryrefslogtreecommitdiffstats
path: root/minui/resources.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2016-11-16 22:27:31 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-11-16 22:27:32 +0100
commitc470dc8681364b4e00bda0a28386a20d6b5f6048 (patch)
treea9350bc8e8a49bf7324dfdc06b3d4d8c933a4eb4 /minui/resources.cpp
parentMerge "Use static_cast to cast pointers returned by malloc/calloc/realloc/mmap." (diff)
parentRemove unnecessary uses of reinterpret_cast. (diff)
downloadandroid_bootable_recovery-c470dc8681364b4e00bda0a28386a20d6b5f6048.tar
android_bootable_recovery-c470dc8681364b4e00bda0a28386a20d6b5f6048.tar.gz
android_bootable_recovery-c470dc8681364b4e00bda0a28386a20d6b5f6048.tar.bz2
android_bootable_recovery-c470dc8681364b4e00bda0a28386a20d6b5f6048.tar.lz
android_bootable_recovery-c470dc8681364b4e00bda0a28386a20d6b5f6048.tar.xz
android_bootable_recovery-c470dc8681364b4e00bda0a28386a20d6b5f6048.tar.zst
android_bootable_recovery-c470dc8681364b4e00bda0a28386a20d6b5f6048.zip
Diffstat (limited to 'minui/resources.cpp')
-rw-r--r--minui/resources.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/minui/resources.cpp b/minui/resources.cpp
index 34e7b8be3..9ccbf4b1b 100644
--- a/minui/resources.cpp
+++ b/minui/resources.cpp
@@ -308,7 +308,7 @@ int res_create_multi_display_surface(const char* name, int* frames, int* fps,
}
free(p_row);
- *pSurface = reinterpret_cast<GRSurface**>(surface);
+ *pSurface = surface;
exit:
png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
@@ -436,7 +436,7 @@ int res_create_localized_alpha_surface(const char* name,
memcpy(surface->data + i*w, row.data(), w);
}
- *pSurface = reinterpret_cast<GRSurface*>(surface);
+ *pSurface = surface;
break;
} else {
int i;