mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Reinstate the size_t MappedType with compile-time bit size checking
Replace the use of size_t in custom code with ulong so SIP doesn't try to use the MappedType there (it only uses pointers for them.)
This commit is contained in:
@@ -831,7 +831,7 @@ public:
|
||||
sipRes = sipCpp->size();
|
||||
%End
|
||||
|
||||
{ItemClass}* __getitem__(size_t index);
|
||||
{ItemClass}* __getitem__(ulong index);
|
||||
%MethodCode
|
||||
if (index < sipCpp->size()) {{
|
||||
{ListClass}::compatibility_iterator node = sipCpp->Item(index);
|
||||
@@ -963,7 +963,7 @@ public:
|
||||
sipRes = sipCpp->GetCount();
|
||||
%End
|
||||
|
||||
{ItemClass}& __getitem__(size_t index);
|
||||
{ItemClass}& __getitem__(ulong index);
|
||||
%MethodCode
|
||||
if (index < sipCpp->GetCount()) {{
|
||||
sipRes = &sipCpp->Item(index);
|
||||
@@ -1026,7 +1026,7 @@ public:
|
||||
sipRes = sipCpp->GetCount();
|
||||
%End
|
||||
|
||||
{ItemClass}* __getitem__(size_t index);
|
||||
{ItemClass}* __getitem__(ulong index);
|
||||
%MethodCode
|
||||
if (index < sipCpp->GetCount()) {{
|
||||
sipRes = sipCpp->Item(index);
|
||||
|
||||
Reference in New Issue
Block a user