summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-04-16 21:14:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-16 21:14:37 +0000
commit262b496f25be27978abe7d98f20978820ecaeec8 (patch)
treee0da02e023646fce7e77bcc1431f8bab575e1ca7 /core/fxcrt
parent0d32b8fda53e02c1036d39f7290d4f59f2b58ca4 (diff)
downloadpdfium-262b496f25be27978abe7d98f20978820ecaeec8.tar.xz
Write out StringViewTemplate::Operator=().
Avoids some weirdness in mac toolchain with external templates and Operator() = default; instantiation. Change-Id: Ieec5dc08ad559752278a6f1de8fc69aad2b4e30c Reviewed-on: https://pdfium-review.googlesource.com/30810 Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt')
-rw-r--r--core/fxcrt/string_view_template.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/fxcrt/string_view_template.h b/core/fxcrt/string_view_template.h
index 05694cf244..1780e47b03 100644
--- a/core/fxcrt/string_view_template.h
+++ b/core/fxcrt/string_view_template.h
@@ -81,7 +81,10 @@ class StringViewTemplate {
return *this;
}
- StringViewTemplate& operator=(const StringViewTemplate& src) = default;
+ StringViewTemplate& operator=(const StringViewTemplate& src) {
+ m_Span = src.m_Span;
+ return *this;
+ }
const_iterator begin() const {
return reinterpret_cast<const_iterator>(m_Span.begin());