Skip to content

Commit 46da4e9

Browse files
authored
Merge pull request #64122 from hborla/cs-fix-const
[CSFix] Move `const` qualifier in `MustBeCopyable` and `AllowInvalidPackElement`.
2 parents e6f29f8 + d11c65a commit 46da4e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Sema/CSFix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ class MustBeCopyable final : public ConstraintFix {
20592059
Type noncopyableTy,
20602060
ConstraintLocator *locator);
20612061

2062-
static bool classof(ConstraintFix const* fix) {
2062+
static bool classof(const ConstraintFix *fix) {
20632063
return fix->getKind() == FixKind::MustBeCopyable;
20642064
}
20652065
};
@@ -2083,7 +2083,7 @@ class AllowInvalidPackElement final : public ConstraintFix {
20832083
Type packElementType,
20842084
ConstraintLocator *locator);
20852085

2086-
static bool classof(ConstraintFix const* fix) {
2086+
static bool classof(const ConstraintFix *fix) {
20872087
return fix->getKind() == FixKind::AllowInvalidPackElement;
20882088
}
20892089
};

0 commit comments

Comments
 (0)