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:
parent
76ff8ed673
commit
216d173fba
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user