File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -659,9 +659,9 @@ Json::Value obj_value(Json::objectValue); // {}
659659 public:
660660 Comments () = default ;
661661 Comments (const Comments& that);
662- Comments (Comments&&) = default ;
662+ Comments (Comments&& that) ;
663663 Comments& operator =(const Comments& that);
664- Comments& operator =(Comments&&) = default ;
664+ Comments& operator =(Comments&& that) ;
665665 bool has (CommentPlacement slot) const ;
666666 String get (CommentPlacement slot) const ;
667667 void set (CommentPlacement slot, String s);
Original file line number Diff line number Diff line change @@ -1440,11 +1440,19 @@ bool Value::isObject() const { return type() == objectValue; }
14401440Value::Comments::Comments (const Comments& that)
14411441 : ptr_{cloneUnique (that.ptr_ )} {}
14421442
1443+ Value::Comments::Comments (Comments&& that)
1444+ : ptr_{std::move (that.ptr_ )} {}
1445+
14431446Value::Comments& Value::Comments::operator =(const Comments& that) {
14441447 ptr_ = cloneUnique (that.ptr_ );
14451448 return *this ;
14461449}
14471450
1451+ Value::Comments& Value::Comments::operator =(Comments&& that) {
1452+ ptr_ = std::move (that.ptr_ );
1453+ return *this ;
1454+ }
1455+
14481456bool Value::Comments::has (CommentPlacement slot) const {
14491457 return ptr_ && !(*ptr_)[slot].empty ();
14501458}
You can’t perform that action at this time.
0 commit comments