Skip to content

Commit 519ea98

Browse files
[Sema] Modernize VirtSpecifiers (NFC)
1 parent 2fbbb7e commit 519ea98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/include/clang/Sema/DeclSpec.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,7 @@ class VirtSpecifiers {
27052705
VS_Abstract = 16
27062706
};
27072707

2708-
VirtSpecifiers() : Specifiers(0), LastSpecifier(VS_None) { }
2708+
VirtSpecifiers() = default;
27092709

27102710
bool SetSpecifier(Specifier VS, SourceLocation Loc,
27112711
const char *&PrevSpec);
@@ -2729,8 +2729,8 @@ class VirtSpecifiers {
27292729
Specifier getLastSpecifier() const { return LastSpecifier; }
27302730

27312731
private:
2732-
unsigned Specifiers;
2733-
Specifier LastSpecifier;
2732+
unsigned Specifiers = 0;
2733+
Specifier LastSpecifier = VS_None;
27342734

27352735
SourceLocation VS_overrideLoc, VS_finalLoc, VS_abstractLoc;
27362736
SourceLocation FirstLocation;

0 commit comments

Comments
 (0)