From 774bdde253b8394aa2ac791e273508ff006d813a Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 14 Apr 2016 09:49:44 -0700 Subject: Replace calls to deprecated CFX_{Wide,Byte}String::Empty() Use the more standard name "clear()" instead. Review URL: https://codereview.chromium.org/1888103002 --- core/fxcodec/codec/fx_codec_gif.cpp | 2 +- core/fxcodec/lgif/fx_gif.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxcodec') diff --git a/core/fxcodec/codec/fx_codec_gif.cpp b/core/fxcodec/codec/fx_codec_gif.cpp index b7362ca4b3..13576412c2 100644 --- a/core/fxcodec/codec/fx_codec_gif.cpp +++ b/core/fxcodec/codec/fx_codec_gif.cpp @@ -160,7 +160,7 @@ int32_t CCodec_GifModule::LoadFrame(FXGIF_Context* ctx, if (size) { pAttribute->m_strAuthor = CFX_ByteString(buf, size); } else { - pAttribute->m_strAuthor.Empty(); + pAttribute->m_strAuthor.clear(); } buf += size; size = *buf++; diff --git a/core/fxcodec/lgif/fx_gif.cpp b/core/fxcodec/lgif/fx_gif.cpp index 059fa9a70b..53298c831a 100644 --- a/core/fxcodec/lgif/fx_gif.cpp +++ b/core/fxcodec/lgif/fx_gif.cpp @@ -647,7 +647,7 @@ int32_t gif_decode_extension(gif_decompress_struct_p gif_ptr) { gif_ptr->skip_size = skip_size_org; return 2; } - gif_ptr->cmt_data_ptr->Empty(); + gif_ptr->cmt_data_ptr->clear(); while (*data_size_ptr != GIF_BLOCK_TERMINAL) { uint8_t data_size = *data_size_ptr; if (gif_read_data(gif_ptr, &data_ptr, *data_size_ptr) == NULL || -- cgit v1.2.3