summaryrefslogtreecommitdiff
path: root/core/fxcodec
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-08 12:13:50 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-08 12:13:50 -0700
commitf172290a8dc527cd8bc73b0d0ad59e78797968c1 (patch)
tree7e04b3e6d025ba1d2683da1ae668b0505d9cfe98 /core/fxcodec
parent8b36e5cc3d5f5f579c6b060e2c40b896a4b02bc0 (diff)
downloadpdfium-f172290a8dc527cd8bc73b0d0ad59e78797968c1.tar.xz
Remove CFX_ByteString::Load() and operator= for CFX_ByteTextBuf
The few places these are called are better served by explicit calls to CFX_ByteString() itself. This helps make Byte and Wide strings more similar. Also prevents fx_string.h from having any knowledge of fx_basic.h's ByteTextBuf class. Review URL: https://codereview.chromium.org/1870043003
Diffstat (limited to 'core/fxcodec')
-rw-r--r--core/fxcodec/codec/fx_codec_png.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcodec/codec/fx_codec_png.cpp b/core/fxcodec/codec/fx_codec_png.cpp
index fd56c93393..29ea794b5d 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));
}
}
}