Browse Source
Delete the copy constructor and copy assignment operator to prevent shallow copies of the dynamically allocated m_superBlocks array, which could lead to double deletion. Add a move constructor that transfers ownership of m_superBlocks and nulls the source pointer, allowing std::vector<RemoteDataFrame> to relocate elements safely during resize. cppcheck identified the missing copy constructor and assignment operator with its noCopyConstructor and noOperatorEq warnings. Signed-off-by: Robin Getz <rgetz503@gmail.com>chirpmodem-v8.0.0
1 changed files with 10 additions and 0 deletions
Loading…
Reference in new issue