X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FDialogs.C;h=aa300df61d7dc60758ef741e349c80b9c74d7f77;hb=eba67bc3120dc301bf193c3f3b570f51f00a4654;hp=5384eda325dee0eebf63fcfd8aa97849a5f28dc9;hpb=0a16442310eda0baee85054b2b331061a0d90a76;p=lyx.git diff --git a/src/frontends/xforms/Dialogs.C b/src/frontends/xforms/Dialogs.C index 5384eda325..aa300df61d 100644 --- a/src/frontends/xforms/Dialogs.C +++ b/src/frontends/xforms/Dialogs.C @@ -26,11 +26,14 @@ #include "FormTabularCreate.h" #include "FormToc.h" #include "FormUrl.h" +//#include "debug.h" #ifdef __GNUG__ #pragma implementation #endif +using std::endl; + // temporary till ported extern void ShowCredits(); @@ -67,20 +70,12 @@ Dialogs::Dialogs(LyXView * lv) Dialogs::~Dialogs() { -#if 0 - // I belive that this is unsafe... for (vector::iterator iter = dialogs_.begin(); iter != dialogs_.end(); ++iter) { + //lyxerr << "delete *iter" << endl; delete *iter; } -#else - // I think this is better... - while (!dialogs_.empty()) { - delete dialogs_.back(); - dialogs_.erase(dialogs_.end() - 1); - } -#endif }