tabgroupmanager fails to compile with older wxGTK
Posted: Mon Oct 11, 2010 3:36 pm
Hi,
on a machine with a somewhat older wxGTK
the conditional
#if wxVERSION_NUMBER >= 2808
is false. The following code
#if wxVERSION_NUMBER >= 2808
return TabInfoArrayNode->InsertChildAfter(node, previousnode); // >=2.8.8 has a convenient function to do this
#else
wxXmlNode* nextnode = previousnode->GetNext();
if (nextnode) {
return TabInfoArrayNode->InsertChild(node, nextnode) // <<<< missing semicolon
} else {
return TabInfoArrayNode->AddChild(node);
}
#endif
} else {
TabInfoArrayNode->AddChild(node); // this is line 133
}
return true;
}
doesn't compile here (even with the missing semicolon added) I get quite a strange error message (badly translated from German)
LiteEditor/tabgroupmanager.cpp: In member function
»bool TabgroupManager::DoAddItemToTabgroup(wxXmlDocument&, wxXmlNode*, const wxString&, const wxString&)«:
LiteEditor/tabgroupmanager.cpp:133: error : void value has not been ignored as it should.
(Fehler: void-Wert nicht ignoriert wie es sein sollte)
Has anybody an idea what's going wrong?
Many thanks,
Helmut.
on a machine with a somewhat older wxGTK
the conditional
#if wxVERSION_NUMBER >= 2808
is false. The following code
#if wxVERSION_NUMBER >= 2808
return TabInfoArrayNode->InsertChildAfter(node, previousnode); // >=2.8.8 has a convenient function to do this
#else
wxXmlNode* nextnode = previousnode->GetNext();
if (nextnode) {
return TabInfoArrayNode->InsertChild(node, nextnode) // <<<< missing semicolon
} else {
return TabInfoArrayNode->AddChild(node);
}
#endif
} else {
TabInfoArrayNode->AddChild(node); // this is line 133
}
return true;
}
doesn't compile here (even with the missing semicolon added) I get quite a strange error message (badly translated from German)
LiteEditor/tabgroupmanager.cpp: In member function
»bool TabgroupManager::DoAddItemToTabgroup(wxXmlDocument&, wxXmlNode*, const wxString&, const wxString&)«:
LiteEditor/tabgroupmanager.cpp:133: error : void value has not been ignored as it should.
(Fehler: void-Wert nicht ignoriert wie es sein sollte)
Has anybody an idea what's going wrong?
Many thanks,
Helmut.