X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fcow_ptr.h;h=685d0e4ba9740364d956b4fa3a31a0b68ebc14bb;hb=da1c04ea9a13dcfe75ad7e727811e9d3004609aa;hp=35975dc6204570bf6a946bf4761af242d94221ff;hpb=f9c1cafbe6b7095bb520891de9b93a2495e3a9a8;p=lyx.git diff --git a/src/support/cow_ptr.h b/src/support/cow_ptr.h index 35975dc620..685d0e4ba9 100644 --- a/src/support/cow_ptr.h +++ b/src/support/cow_ptr.h @@ -60,9 +60,9 @@ cow_ptr::cow_ptr(cow_ptr const & other) template cow_ptr & cow_ptr::operator=(cow_ptr const & other) { - if (&other != this) + if (&other != this) ptr_ = other.ptr_; - return *this; + return *this; } @@ -114,7 +114,7 @@ T * cow_ptr::get() template void cow_ptr::copy() { - if (!ptr_.unique()) + if (!ptr_.unique()) ptr_ = boost::shared_ptr(new T(*ptr_.get())); }