Skip to content

Commit 1559b37

Browse files
committed
[Basic] Remove unnecessary 'const' from several briding functions
1 parent a619daf commit 1559b37

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/swift/Basic/BasicBridging.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ class BridgedArrayRef {
164164

165165
SWIFT_NAME("getter:BridgedArrayRef.data(self:)")
166166
BRIDGED_INLINE
167-
const void *_Nullable BridgedArrayRef_data(const BridgedArrayRef arr);
167+
const void *_Nullable BridgedArrayRef_data(BridgedArrayRef arr);
168168

169169
SWIFT_NAME("getter:BridgedArrayRef.count(self:)")
170-
BRIDGED_INLINE SwiftInt BridgedArrayRef_count(const BridgedArrayRef arr);
170+
BRIDGED_INLINE SwiftInt BridgedArrayRef_count(BridgedArrayRef arr);
171171

172172
SWIFT_NAME("getter:BridgedArrayRef.isEmpty(self:)")
173-
BRIDGED_INLINE bool BridgedArrayRef_isEmpty(const BridgedArrayRef arr);
173+
BRIDGED_INLINE bool BridgedArrayRef_isEmpty(BridgedArrayRef arr);
174174

175175
//===----------------------------------------------------------------------===//
176176
// MARK: Data

include/swift/Basic/BasicBridgingImpl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ SWIFT_BEGIN_NULLABILITY_ANNOTATIONS
2323
// MARK: BridgedArrayRef
2424
//===----------------------------------------------------------------------===//
2525

26-
const void *_Nullable BridgedArrayRef_data(const BridgedArrayRef arr) {
26+
const void *_Nullable BridgedArrayRef_data(BridgedArrayRef arr) {
2727
return arr.Data;
2828
}
2929

30-
SwiftInt BridgedArrayRef_count(const BridgedArrayRef arr) {
30+
SwiftInt BridgedArrayRef_count(BridgedArrayRef arr) {
3131
return static_cast<SwiftInt>(arr.Length);
3232
}
3333

34-
bool BridgedArrayRef_isEmpty(const BridgedArrayRef arr) {
34+
bool BridgedArrayRef_isEmpty(BridgedArrayRef arr) {
3535
return arr.Length == 0;
3636
}
3737

0 commit comments

Comments
 (0)