mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Basic] Remove unnecessary 'const' from several briding functions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user