Commit 8d4bc8ad authored by Jan Möbius's avatar Jan Möbius

Silence some cppcheck warnings

parent 14846061
......@@ -302,15 +302,15 @@ public:
inline Reference data( int _idx ) { return data_[ _idx ]; } //!< Access the data as reference.
inline ConstReference data( int _idx ) const { return data_[ _idx ]; } //!< Access the data as const reference.
public:
virtual inline size_t sizeOf() const { return sizeof( T ); } //!< Get the size of type.
virtual inline const std::type_info &typeId() const { return typeid( T ); } //!< Get the runtime type information.
virtual inline size_t sizeOf() const override { return sizeof( T ); } //!< Get the size of type.
virtual inline const std::type_info &typeId() const override { return typeid( T ); } //!< Get the runtime type information.
private:
virtual inline ~SplatPropertyT<T>() { } //!< Destructor
virtual inline SplatPropertyT<T> *clone() const { return new SplatPropertyT<T>( *this ); } //!< Return a deep copy of this.
virtual inline void clear() { std::vector<T>().swap( data_ ); } //!< Clear the data vector.
virtual inline void pushback() { data_.push_back( T() ); } //!< Add one element at the end of the data vector.
virtual inline void resize( unsigned int _num ) { data_.resize( _num ); } //!< Resize the data vector.
virtual void crop( const std::vector<int> &_indices ); //!< Keep only the elements with given indices in the data vector. The indices have to be valid, sorted and unique.
virtual inline SplatPropertyT<T> *clone() const override { return new SplatPropertyT<T>( *this ); } //!< Return a deep copy of this.
virtual inline void clear() override { std::vector<T>().swap( data_ ); } //!< Clear the data vector.
virtual inline void pushback() override { data_.push_back( T() ); } //!< Add one element at the end of the data vector.
virtual inline void resize( unsigned int _num ) override { data_.resize( _num ); } //!< Resize the data vector.
virtual void crop( const std::vector<int> &_indices ) override; //!< Keep only the elements with given indices in the data vector. The indices have to be valid, sorted and unique.
private:
void operator=( const SplatPropertyT<T> & ); //!< Disallow the assign operator. (private and *not* implemented)
private:
......@@ -333,11 +333,11 @@ public:
inline Reference data() { return data_; } //!< Access the data as reference.
inline ConstReference data() const { return data_; } //!< Access the data as const reference.
public:
virtual inline size_t sizeOf() const { return sizeof( T ); } //!< Get the size of type.
virtual inline const std::type_info &typeId() const { return typeid( T ); } //!< Get the runtime type information.
virtual inline size_t sizeOf() const override { return sizeof( T ); } //!< Get the size of type.
virtual inline const std::type_info &typeId() const override { return typeid( T ); } //!< Get the runtime type information.
private:
virtual inline ~CloudPropertyT<T>() { } //!< Destructor
virtual inline CloudPropertyT<T> *clone() const { return new CloudPropertyT<T>( *this ); } //!< Return a deep copy of this.
virtual inline CloudPropertyT<T> *clone() const override { return new CloudPropertyT<T>( *this ); } //!< Return a deep copy of this.
private:
void operator=( const CloudPropertyT<T> & ); //!< Disallow the assign operator. (private and *not* implemented)
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment