git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8442
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString File;
wxXmlDocument *Doc;
- bool DocOwned;
wxDateTime Time;
};
wxPanel *LoadPanel(wxWindow *parent, const wxString& name);
bool LoadPanel(wxPanel *panel, wxWindow *parent, const wxString& name);
- // Load bitmap or icon resource from file:
+ // Loads bitmap or icon resource from file:
wxBitmap LoadBitmap(const wxString& name);
wxIcon LoadIcon(const wxString& name);
wxXmlResource::~wxXmlResource()
{
- for (size_t i = 0; i < m_Data.GetCount(); i++)
- {
- if (!m_Data[i].DocOwned) m_Data[i].Doc = NULL;
- // we don't want it to be deleted
- }
-
ClearHandlers();
}
drec = new wxXmlResourceDataRecord;
drec->File = fnd2;
m_Data.Add(drec);
- drec->DocOwned = TRUE;
fnd2 = fs2.FindNext();
}
}
{
drec = new wxXmlResourceDataRecord;
drec->File = fnd;
- drec->DocOwned = TRUE;
m_Data.Add(drec);
}
for (size_t i = 0; i < m_Data.GetCount(); i++)
{
- if (!m_Data[i].DocOwned) continue;
-
modif = (m_Data[i].Doc == NULL);
if (!modif)