Skip to content
Snippets Groups Projects
Commit 0aa77ebb authored by Siarhei Harkusha's avatar Siarhei Harkusha
Browse files

TileEvent: Fix const correctness violation

Tile raw data containers allow to clear their collections.
But implementation of this functionality violates const correctness.
And since it seems not to be used at all this functionality has been removed.
parent b44657fb
No related branches found
No related tags found
No related merge requests found
......@@ -56,9 +56,6 @@ public:
void initialize(bool createColl, TYPE type,
SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS);
// clear all collections
void clear();
inline TYPE get_hashType() const { return this->m_hashFunc.type(); }
inline UNIT get_unit() const { return this->m_unit; }
inline void set_unit(UNIT unit) { m_unit=unit; }
......
......@@ -75,21 +75,6 @@ TileRawDataContainer<TCOLLECTION>::TileRawDataContainer(bool createColl,
return;
}
template <typename TCOLLECTION>
void TileRawDataContainer<TCOLLECTION>::clear()
{
TContainer_const_iterator it1 = this->begin();
TContainer_const_iterator it2 = this->end();
for(;it1!=it2;++it1){
const TCOLLECTION * const_coll = *it1;
TCOLLECTION * coll = const_cast<TCOLLECTION *>(const_coll);
coll->clear();
}
return;
}
template <typename TCOLLECTION>
void TileRawDataContainer<TCOLLECTION>::print() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment