Skip to content
Snippets Groups Projects
Commit 5003e764 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

warn

parent ec1d9097
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ void PView::_init(int num) ...@@ -36,6 +36,7 @@ void PView::_init(int num)
bool replaced = false; bool replaced = false;
for(unsigned int i = 0; i < list.size(); i++){ for(unsigned int i = 0; i < list.size(); i++){
if(list[i]->getNum() == _num){ if(list[i]->getNum() == _num){
// warning: this can potentially break aliases
Msg::Info("Replacing View[%d]", i); Msg::Info("Replacing View[%d]", i);
replaced = true; replaced = true;
delete list[i]; delete list[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment