Make the class names constant in ParseComponents.hpp.

This commit is contained in:
Username404 2021-08-01 12:58:37 +02:00
parent 7ce27cc49d
commit e3804aa342
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -38,7 +38,7 @@ namespace StandardComponents {
}; };
struct Class: ParseComponent { struct Class: ParseComponent {
struct Constructor {}; struct Constructor {};
string name; const string name;
Constructor constructor; Constructor constructor;
explicit Class(string_view text): name(text) {} explicit Class(string_view text): name(text) {}
}; };