aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2017-02-20 22:41:22 +0000
committerSergio Martins <smartins@kde.org>2017-02-20 22:41:22 +0000
commit8b4f43913a7188f6bf4fa41d3dd845eb1f4f4641 (patch)
tree9cd4466a51cd3f830dff7e544193101f7407688f
parent9a0cd362028b51e5f73f3c8cf479554905c60a85 (diff)
temporary-iterator: fix on Windowsv1.1
For some reason it's an xvalue here..
-rw-r--r--src/checks/level0/temporaryiterator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/checks/level0/temporaryiterator.cpp b/src/checks/level0/temporaryiterator.cpp
index 56bb5cb2..d3825bbb 100644
--- a/src/checks/level0/temporaryiterator.cpp
+++ b/src/checks/level0/temporaryiterator.cpp
@@ -113,8 +113,7 @@ void TemporaryIterator::VisitStmt(clang::Stmt *stm)
return;
Expr *expr = memberExpr->getImplicitObjectArgument();
-
- if (!expr || !expr->isRValue()) // This check is about detaching temporaries, so check for r value
+ if (!expr || expr->isLValue()) // This check is about detaching temporaries, so check for r value
return;
const Type *containerType = expr->getType().getTypePtrOrNull();