Applied patch [ 843965 ] RC/WXRC/XML related contribs and utils cleaning

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-12-11 11:27:56 +00:00
parent dacaa6f142
commit 19d0f58d39
14 changed files with 589 additions and 591 deletions

View File

@@ -206,7 +206,6 @@ wxObject* wxSizerXmlHandler::Handle_sizer()
// save state
wxSizer *old_par = m_parentSizer;
bool old_ins = m_isInside;
bool old_gbs = m_isGBS;
// set new state
m_parentSizer = sizer;
@@ -216,7 +215,6 @@ wxObject* wxSizerXmlHandler::Handle_sizer()
CreateChildren(m_parent, TRUE/*only this handler*/);
// restore state
old_gbs = m_isGBS;
m_isInside = old_ins;
m_parentSizer = old_par;

View File

@@ -59,6 +59,8 @@ wxObject *wxWizardXmlHandler::DoCreateResource()
else
{
wxWizardPage *page = NULL;
wxUnusedVar(page);
if (m_class == wxT("wxWizardPageSimple"))
{
XRC_MAKE_INSTANCE(p, wxWizardPageSimple)

View File

@@ -324,6 +324,7 @@ bool wxXmlResource::UpdateResources()
bool modif;
# if wxUSE_FILESYSTEM
wxFSFile *file = NULL;
wxUnusedVar(file);
wxFileSystem fsys;
# endif
@@ -353,6 +354,7 @@ bool wxXmlResource::UpdateResources()
rt = false;
}
wxDELETE(file);
wxUnusedVar(file);
# else
modif = wxDateTime(wxFileModificationTime(m_data[i].File)) > m_data[i].Time;
# endif
@@ -413,6 +415,7 @@ bool wxXmlResource::UpdateResources()
# if wxUSE_FILESYSTEM
wxDELETE(file);
wxUnusedVar(file);
# else
wxDELETE(stream);
# endif
@@ -1180,14 +1183,12 @@ static int XRCID_Lookup(const wxChar *str_id, int value_if_not_found = -2)
index %= XRCID_TABLE_SIZE;
XRCID_record *oldrec = NULL;
int matchcnt = 0;
for (XRCID_record *rec = XRCID_Records[index]; rec; rec = rec->next)
{
if (wxStrcmp(rec->key, str_id) == 0)
{
return rec->id;
}
matchcnt++;
oldrec = rec;
}