openwrt-packages/net/dcwapd/patches/010-gcc14.patch

15 lines
678 B
Diff

--- a/dcwlinux/include/rapidjson/document.h
+++ b/dcwlinux/include/rapidjson/document.h
@@ -314,9 +314,9 @@ struct GenericStringRef {
GenericStringRef(const CharType* str, SizeType len)
: s(str), length(len) { RAPIDJSON_ASSERT(s != 0); }
- GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {}
+ GenericStringRef(const GenericStringRef& rhs) = default;
- GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
+ GenericStringRef& operator=(const GenericStringRef& rhs) = default;
//! implicit conversion to plain CharType pointer
operator const Ch *() const { return s; }