renamed meaningless IsRealClass() function in CanBeUsedWithXRCCTRL() because this is what it really does

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-03-17 16:48:11 +00:00
parent 76ff8ed673
commit 216d173fba

View File

@ -109,7 +109,7 @@ public:
return m_wdata;
}
bool IsRealClass(const wxString& name)
bool CanBeUsedWithXRCCTRL(const wxString& name)
{
if (name == _T("tool") ||
name == _T("unknown") ||
@ -134,7 +134,7 @@ public:
for(i=0;i<m_wdata.Count();++i)
{
const XRCWidgetData& w = m_wdata.Item(i);
if( !IsRealClass(w.GetClass()) ) continue;
if( !CanBeUsedWithXRCCTRL(w.GetClass()) ) continue;
if( w.GetName().Length() == 0 ) continue;
file.Write(
_T(" ") + w.GetClass() + _T("* ") + w.GetName()
@ -149,7 +149,7 @@ public:
for(i=0;i<m_wdata.Count();++i)
{
const XRCWidgetData& w = m_wdata.Item(i);
if( !IsRealClass(w.GetClass()) ) continue;
if( !CanBeUsedWithXRCCTRL(w.GetClass()) ) continue;
if( w.GetName().Length() == 0 ) continue;
file.Write( _T(" ")
+ w.GetName()