diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-20 12:38:09 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-30 23:37:44 +0300 |
commit | 65f4df5190d764a12a2c8054bfce2838545917e7 (patch) | |
tree | 4b0ae8b13e19d88af1b6e3c7ae2c05d41069723c /platform/default/src/mbgl/util/png_writer.cpp | |
parent | 5fa7ff3b63226bda5fe18a89794c76e86f81c4f8 (diff) | |
download | qtlocation-mapboxgl-65f4df5190d764a12a2c8054bfce2838545917e7.tar.gz |
[core] Fix google-readability-casting errors
As reported by clang-tidy-8.
Diffstat (limited to 'platform/default/src/mbgl/util/png_writer.cpp')
-rw-r--r-- | platform/default/src/mbgl/util/png_writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/src/mbgl/util/png_writer.cpp b/platform/default/src/mbgl/util/png_writer.cpp index b89e253f85..1cd3cb60b3 100644 --- a/platform/default/src/mbgl/util/png_writer.cpp +++ b/platform/default/src/mbgl/util/png_writer.cpp @@ -59,7 +59,7 @@ std::string encodePNG(const PremultipliedImage& pre) { for (uint32_t y = 0; y < src.size.height; y++) { // Every scanline needs to be prefixed with one byte that indicates the filter type. idat.append(1, 0); // filter type 0 - idat.append((const char*)(src.data.get() + y * stride), stride); + idat.append(reinterpret_cast<const char*>(src.data.get() + y * stride), stride); } idat = util::compress(idat); |