Remove MSVC6 support.
Don't support this compiler any more, this allows to get rid of tons of MSVC6-specific workarounds, in particular we can now use Bind() and natural template functions calls in the library code. Also remove MSVC6 project and solution files and don't generate them when bakefile_gen is ran any more (removing the remaining occurrences of msvc6prj from the bakefiles results in weird bake-time errors, so it's simpler to just leave them there). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -658,20 +658,16 @@ wxTreeListModel::InsertItem(Node* parent,
|
||||
wxScopedPtr<Node>
|
||||
newItem(new Node(parent, text, imageClosed, imageOpened, data));
|
||||
|
||||
// FIXME-VC6: This compiler refuses to compare "Node* previous" with
|
||||
// wxTLI_XXX without some help.
|
||||
const wxTreeListItem previousItem(previous);
|
||||
|
||||
// If we have no children at all, then inserting as last child is the same
|
||||
// as inserting as the first one so check for it here too.
|
||||
if ( previousItem == wxTLI_FIRST ||
|
||||
(previousItem == wxTLI_LAST && !parent->GetChild()) )
|
||||
if ( previous == wxTLI_FIRST ||
|
||||
(previous == wxTLI_LAST && !parent->GetChild()) )
|
||||
{
|
||||
parent->InsertChild(newItem.get());
|
||||
}
|
||||
else // Not the first item, find the previous one.
|
||||
{
|
||||
if ( previousItem == wxTLI_LAST )
|
||||
if ( previous == wxTLI_LAST )
|
||||
{
|
||||
previous = parent->GetChild();
|
||||
|
||||
|
Reference in New Issue
Block a user