aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp b/clang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp
index 44f6d20..d8cdc0d 100644
--- a/clang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp
+++ b/clang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp
@@ -39,7 +39,7 @@ void MoveConstructorInitCheck::check(const MatchFinder::MatchResult &Result) {
// Do not diagnose if the expression used to perform the initialization is a
// trivially-copyable type.
- QualType QT = Initializer->getInit()->getType();
+ const QualType QT = Initializer->getInit()->getType();
if (QT.isTriviallyCopyableType(*Result.Context))
return;