Skip to content

Commit 17e8443

Browse files
Update vf_settokenvalue.cpp
1 parent 678290c commit 17e8443

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/vf_settokenvalue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ namespace ValueFlow
384384
setTokenValueCast(parent, valueType, std::move(value), settings);
385385
}
386386

387-
else if (parent->str() == ":") {
387+
else if (parent->str() == ":" && Token::simpleMatch(parent->astParent(), "?")) {
388388
setTokenValue(parent,std::move(value),settings);
389389
}
390390

0 commit comments

Comments
 (0)