X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fhla%2FRTIData.hxx;h=2dc32b06ccb09d2f5525b433ac05c55c49fc2a4b;hb=7dc8bf3aa41655e8ae63a7193fe99b5a7802a6b7;hp=dff66dbf53a091e352cbccc1abf0dabc8d53c5e1;hpb=ce71b8c1cf761742ab88975442f4037b5e460114;p=simgear.git diff --git a/simgear/hla/RTIData.hxx b/simgear/hla/RTIData.hxx index dff66dbf..2dc32b06 100644 --- a/simgear/hla/RTIData.hxx +++ b/simgear/hla/RTIData.hxx @@ -115,6 +115,13 @@ public: ensureCapacity(capacity); } + void swap(RTIData& data) + { + std::swap(_data, data._data); + std::swap(_size, data._size); + std::swap(_capacity, data._capacity); + } + void setData(char* data, unsigned size) { if (_capacity)