[Basic] Remove unnecessary 'const' from several briding functions

This commit is contained in:
Rintaro Ishizaki
2025-02-05 10:37:56 -08:00
parent a619daf12b
commit 1559b37c03
2 changed files with 6 additions and 6 deletions

View File

@@ -164,13 +164,13 @@ public:
SWIFT_NAME("getter:BridgedArrayRef.data(self:)")
BRIDGED_INLINE
const void *_Nullable BridgedArrayRef_data(const BridgedArrayRef arr);
const void *_Nullable BridgedArrayRef_data(BridgedArrayRef arr);
SWIFT_NAME("getter:BridgedArrayRef.count(self:)")
BRIDGED_INLINE SwiftInt BridgedArrayRef_count(const BridgedArrayRef arr);
BRIDGED_INLINE SwiftInt BridgedArrayRef_count(BridgedArrayRef arr);
SWIFT_NAME("getter:BridgedArrayRef.isEmpty(self:)")
BRIDGED_INLINE bool BridgedArrayRef_isEmpty(const BridgedArrayRef arr);
BRIDGED_INLINE bool BridgedArrayRef_isEmpty(BridgedArrayRef arr);
//===----------------------------------------------------------------------===//
// MARK: Data

View File

@@ -23,15 +23,15 @@ SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
// MARK: BridgedArrayRef
//===----------------------------------------------------------------------===//
const void *_Nullable BridgedArrayRef_data(const BridgedArrayRef arr) {
const void *_Nullable BridgedArrayRef_data(BridgedArrayRef arr) {
return arr.Data;
}
SwiftInt BridgedArrayRef_count(const BridgedArrayRef arr) {
SwiftInt BridgedArrayRef_count(BridgedArrayRef arr) {
return static_cast<SwiftInt>(arr.Length);
}
bool BridgedArrayRef_isEmpty(const BridgedArrayRef arr) {
bool BridgedArrayRef_isEmpty(BridgedArrayRef arr) {
return arr.Length == 0;
}