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;
item.m_itemId = 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);
id = FindItem( 0, wxPtrToUInt(fd) );
EnsureVisible( id );
EditLabel( id );
itemid = FindItem( 0, wxPtrToUInt(fd) );
EnsureVisible( itemid );
EditLabel( itemid );
}
else
delete fd;

View File

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

View File

@@ -1484,16 +1484,16 @@ wxTreeItemId wxGenericTreeCtrl::GetNext(const wxTreeItemId& item) const
wxTreeItemId wxGenericTreeCtrl::GetFirstVisibleItem() const
{
wxTreeItemId id = GetRootItem();
if (!id.IsOk())
return id;
wxTreeItemId itemid = GetRootItem();
if (!itemid.IsOk())
return itemid;
do
{
if (IsVisible(id))
return id;
id = GetNext(id);
} while (id.IsOk());
if (IsVisible(itemid))
return itemid;
itemid = GetNext(itemid);
} while (itemid.IsOk());
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
// 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
wxTreeItemId id = idParent;
wxTreeItemId itemid = idParent;
if ( prefix.length() == 1 )
{
id = GetNext(id);
itemid = GetNext(itemid);
}
// 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 ( !id.IsOk() )
if ( !itemid.IsOk() )
{
// ... wrap to the beginning
id = GetRootItem();
itemid = GetRootItem();
if ( HasFlag(wxTR_HIDE_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)
while ( id.IsOk() && id != idParent &&
!GetItemText(id).Lower().StartsWith(prefix) )
while ( itemid.IsOk() && itemid != idParent &&
!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
// documentation
}
return id;
return itemid;
}
// -----------------------------------------------------------------------------