This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Tom Tsou gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/2939 common: Declare explicit Vector move constructor Vector class already has a semantically odd non-const copy constructor that serves the same function as a C++11 move constructor. Make the move constructor semantics explicit and address Coverity at the same time. Change-Id: I22e0099abe601b0c59beee808f7560837c6977dd Fixes: Coverity CID 170738 --- M CommonLibs/Vector.h 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/39/2939/1 diff --git a/CommonLibs/Vector.h b/CommonLibs/Vector.h index eae674b..86183af 100644 --- a/CommonLibs/Vector.h +++ b/CommonLibs/Vector.h @@ -119,7 +119,7 @@ Vector(size_t wSize=0):mData(NULL) { resize(wSize); } /** Build a Vector by shifting the data block. */ - Vector(Vector<T>& other) + Vector(Vector<T>&& other) :mData(other.mData),mStart(other.mStart),mEnd(other.mEnd) { other.mData=NULL; } -- To view, visit https://gerrit.osmocom.org/2939 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I22e0099abe601b0c59beee808f7560837c6977dd Gerrit-PatchSet: 1 Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Owner: Tom Tsou <tom at tsou.cc>