Skip to content

Commit bd53bcc

Browse files
t-a-jamesEugeneZelenko
authored andcommitted
Update clang-tools-extra/clang-tidy/bugprone/MethodHidingCheck.cpp
Co-authored-by: EugeneZelenko <[email protected]>
1 parent e67deda commit bd53bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/bugprone/MethodHidingCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void MethodHidingCheck::check(const MatchFinder::MatchResult &Result) {
132132

133133
auto const MethodName = ShadowingMethod->getNameInfo().getAsString();
134134
auto const DerivedClassName = DerivedClass->getNameAsString();
135-
std::string BaseClassName = BaseMethod->getParent()->getNameAsString();
135+
const std::string BaseClassName = BaseMethod->getParent()->getNameAsString();
136136

137137
std::string Message;
138138
llvm::raw_string_ostream StringStream(Message);

0 commit comments

Comments
 (0)