Finally whole configtool works regardless of wxUSE_STL value (at least with Borland). Changes followed adjustements of other things like better styles, storing pointers, unified headers of files, etc. etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,15 +13,14 @@
|
||||
#pragma implementation "configitem.h"
|
||||
#endif
|
||||
|
||||
// Includes other headers for precompiled compilation
|
||||
#include "wx/wx.h"
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/tokenzr.h"
|
||||
|
||||
#include "configitem.h"
|
||||
#include "configtree.h"
|
||||
#include "configtooldoc.h"
|
||||
@@ -439,12 +438,14 @@ void ctConfigItem::Attach(ctConfigItem* parent, ctConfigItem* insertBefore)
|
||||
if (parent)
|
||||
{
|
||||
SetParent(parent);
|
||||
wxObjectList::compatibility_iterator node = (wxObjectList::compatibility_iterator)NULL;
|
||||
if (insertBefore)
|
||||
node = parent->GetChildren().Member(insertBefore);
|
||||
|
||||
if (node)
|
||||
parent->GetChildren().Insert(node, this);
|
||||
{
|
||||
wxObjectList::compatibility_iterator node = parent->GetChildren().Member(insertBefore);
|
||||
if (node)
|
||||
parent->GetChildren().Insert(node, this);
|
||||
else
|
||||
parent->GetChildren().Append(this);
|
||||
}
|
||||
else
|
||||
parent->GetChildren().Append(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user