replace usage of objective-c keyword 'id'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-03-16 07:22:56 +00:00
parent 4b1d0dbe25
commit 6485c8d7fb
3 changed files with 27 additions and 27 deletions

View File

@@ -677,14 +677,14 @@ void wxFileListCtrl::MakeDir()
wxListItem item; wxListItem item;
item.m_itemId = 0; item.m_itemId = 0;
item.m_col = 0; item.m_col = 0;
long id = Add( fd, item ); long itemid = Add( fd, item );
if (id != -1) if (itemid != -1)
{ {
SortItems(m_sort_field, m_sort_forward); SortItems(m_sort_field, m_sort_forward);
id = FindItem( 0, wxPtrToUInt(fd) ); itemid = FindItem( 0, wxPtrToUInt(fd) );
EnsureVisible( id ); EnsureVisible( itemid );
EditLabel( id ); EditLabel( itemid );
} }
else else
delete fd; delete fd;

View File

@@ -134,12 +134,12 @@ bool wxExtHelpController::DisplayHelp(const wxString &relativeURL)
class wxExtHelpMapEntry : public wxObject class wxExtHelpMapEntry : public wxObject
{ {
public: public:
int id; int entryid;
wxString url; wxString url;
wxString doc; wxString doc;
wxExtHelpMapEntry(int iid, wxString const &iurl, wxString const &idoc) wxExtHelpMapEntry(int iid, wxString const &iurl, wxString const &idoc)
{ id = iid; url = iurl; doc = idoc; } { entryid = iid; url = iurl; doc = idoc; }
}; };
void wxExtHelpController::DeleteList() void wxExtHelpController::DeleteList()
@@ -325,7 +325,7 @@ bool wxExtHelpController::DisplayContents()
while (node) while (node)
{ {
entry = (wxExtHelpMapEntry *)node->GetData(); entry = (wxExtHelpMapEntry *)node->GetData();
if (entry->id == WXEXTHELP_CONTENTS_ID) if (entry->entryid == WXEXTHELP_CONTENTS_ID)
{ {
contents = entry->url; contents = entry->url;
break; break;
@@ -357,7 +357,7 @@ bool wxExtHelpController::DisplaySection(int sectionNo)
while (node) while (node)
{ {
entry = (wxExtHelpMapEntry *)node->GetData(); entry = (wxExtHelpMapEntry *)node->GetData();
if (entry->id == sectionNo) if (entry->entryid == sectionNo)
return DisplayHelp(entry->url); return DisplayHelp(entry->url);
node = node->GetNext(); node = node->GetNext();
} }

View File

@@ -1484,16 +1484,16 @@ wxTreeItemId wxGenericTreeCtrl::GetNext(const wxTreeItemId& item) const
wxTreeItemId wxGenericTreeCtrl::GetFirstVisibleItem() const wxTreeItemId wxGenericTreeCtrl::GetFirstVisibleItem() const
{ {
wxTreeItemId id = GetRootItem(); wxTreeItemId itemid = GetRootItem();
if (!id.IsOk()) if (!itemid.IsOk())
return id; return itemid;
do do
{ {
if (IsVisible(id)) if (IsVisible(itemid))
return id; return itemid;
id = GetNext(id); itemid = GetNext(itemid);
} while (id.IsOk()); } while (itemid.IsOk());
return wxTreeItemId(); return wxTreeItemId();
} }
@@ -1570,40 +1570,40 @@ wxTreeItemId wxGenericTreeCtrl::FindItem(const wxTreeItemId& idParent,
// allows to switch between two items starting with the same letter just by // allows to switch between two items starting with the same letter just by
// pressing it) but we shouldn't jump to the next one if the user is // pressing it) but we shouldn't jump to the next one if the user is
// continuing to type as otherwise he might easily skip the item he wanted // continuing to type as otherwise he might easily skip the item he wanted
wxTreeItemId id = idParent; wxTreeItemId itemid = idParent;
if ( prefix.length() == 1 ) if ( prefix.length() == 1 )
{ {
id = GetNext(id); itemid = GetNext(itemid);
} }
// look for the item starting with the given prefix after it // look for the item starting with the given prefix after it
while ( id.IsOk() && !GetItemText(id).Lower().StartsWith(prefix) ) while ( itemid.IsOk() && !GetItemText(itemid).Lower().StartsWith(prefix) )
{ {
id = GetNext(id); itemid = GetNext(itemid);
} }
// if we haven't found anything... // if we haven't found anything...
if ( !id.IsOk() ) if ( !itemid.IsOk() )
{ {
// ... wrap to the beginning // ... wrap to the beginning
id = GetRootItem(); itemid = GetRootItem();
if ( HasFlag(wxTR_HIDE_ROOT) ) if ( HasFlag(wxTR_HIDE_ROOT) )
{ {
// can't select virtual root // can't select virtual root
id = GetNext(id); itemid = GetNext(itemid);
} }
// and try all the items (stop when we get to the one we started from) // and try all the items (stop when we get to the one we started from)
while ( id.IsOk() && id != idParent && while ( itemid.IsOk() && itemid != idParent &&
!GetItemText(id).Lower().StartsWith(prefix) ) !GetItemText(itemid).Lower().StartsWith(prefix) )
{ {
id = GetNext(id); itemid = GetNext(itemid);
} }
// If we haven't found the item, id.IsOk() will be false, as per // If we haven't found the item, id.IsOk() will be false, as per
// documentation // documentation
} }
return id; return itemid;
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------