Skip to content
Snippets Groups Projects
Commit e383ae8c authored by Matti Pellika's avatar Matti Pellika
Browse files

No commit message

No commit message
parent 8cf21b1d
No related branches found
No related tags found
No related merge requests found
...@@ -281,9 +281,13 @@ CombinedCell::~CombinedCell(){ ...@@ -281,9 +281,13 @@ CombinedCell::~CombinedCell(){
} }
bool CombinedCell::hasVertex(int vertex) const { bool CombinedCell::hasVertex(int vertex) const {
std::vector<int>::const_iterator it = std::find(_vs.begin(), _vs.end(), vertex); /*std::vector<int>::const_iterator it = std::find(_vs.begin(), _vs.end(), vertex);
if (it != _vs.end()) return true; if (it != _vs.end()) return true;
else return false; else return false;*/
for(unsigned int i = 0; i < _v.size(); i++){
if(_v.at(i)->getNum() == vertex) return true;
}
return false;
} }
void CombinedCell::printCell() const { void CombinedCell::printCell() const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment