File tree 2 files changed +10
-2
lines changed 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); // {}
659
659
public:
660
660
Comments () = default ;
661
661
Comments (const Comments& that);
662
- Comments (Comments&&) = default ;
662
+ Comments (Comments&& that) ;
663
663
Comments& operator =(const Comments& that);
664
- Comments& operator =(Comments&&) = default ;
664
+ Comments& operator =(Comments&& that) ;
665
665
bool has (CommentPlacement slot) const ;
666
666
String get (CommentPlacement slot) const ;
667
667
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; }
1440
1440
Value::Comments::Comments (const Comments& that)
1441
1441
: ptr_{cloneUnique (that.ptr_ )} {}
1442
1442
1443
+ Value::Comments::Comments (Comments&& that)
1444
+ : ptr_{std::move (that.ptr_ )} {}
1445
+
1443
1446
Value::Comments& Value::Comments::operator =(const Comments& that) {
1444
1447
ptr_ = cloneUnique (that.ptr_ );
1445
1448
return *this ;
1446
1449
}
1447
1450
1451
+ Value::Comments& Value::Comments::operator =(Comments&& that) {
1452
+ ptr_ = std::move (that.ptr_ );
1453
+ return *this ;
1454
+ }
1455
+
1448
1456
bool Value::Comments::has (CommentPlacement slot) const {
1449
1457
return ptr_ && !(*ptr_)[slot].empty ();
1450
1458
}
You can’t perform that action at this time.
0 commit comments