C++: Use size_t instead of uintptr_t for the index and count

Same as row_count
This commit is contained in:
Olivier Goffart 2024-12-02 17:02:18 +01:00
parent a3dad45f0b
commit 3b0ddbfa75

View file

@ -357,7 +357,7 @@ public:
}
/// Returns the accessible-item-index of that element, if any.
std::optional<uintptr_t> accessible_item_index() const
std::optional<size_t> accessible_item_index() const
{
if (auto result = get_accessible_string_property(
cbindgen_private::AccessibleStringProperty::ItemIndex)) {
@ -370,7 +370,7 @@ public:
}
/// Returns the accessible-item-count of that element, if any.
std::optional<uintptr_t> accessible_item_count() const
std::optional<size_t> accessible_item_count() const
{
if (auto result = get_accessible_string_property(
cbindgen_private::AccessibleStringProperty::ItemCount)) {