| Index: core/fxcodec/codec/fx_codec_png.cpp
|
| diff --git a/core/fxcodec/codec/fx_codec_png.cpp b/core/fxcodec/codec/fx_codec_png.cpp
|
| index fd56c933938da431e59b3c55c36cb8d22c9d700a..29ea794b5de7eb53c58c8311534bdbc63b6d4128 100644
|
| --- a/core/fxcodec/codec/fx_codec_png.cpp
|
| +++ b/core/fxcodec/codec/fx_codec_png.cpp
|
| @@ -82,9 +82,9 @@ static void _png_load_bmp_attribute(png_structp png_ptr,
|
| } else {
|
| buf = "Author";
|
| if (!FXSYS_memcmp(buf, text[i].key, std::min(len, FXSYS_strlen(buf)))) {
|
| - pAttribute->m_strAuthor.Empty();
|
| - pAttribute->m_strAuthor.Load((uint8_t*)text[i].text,
|
| - (FX_STRSIZE)text[i].text_length);
|
| + pAttribute->m_strAuthor =
|
| + CFX_ByteString(reinterpret_cast<uint8_t*>(text[i].text),
|
| + static_cast<FX_STRSIZE>(text[i].text_length));
|
| }
|
| }
|
| }
|
|
|