Skip to content

Commit 162e822

Browse files
committed
Add const to bool var
1 parent 0d10c4a commit 162e822

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Commands/CommandObjectDWIMPrint.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
159159
// arrow operator (`->`) or the subscript operator (`[]`). This is because
160160
// both operators can be overloaded in C++, and could result in ambiguity in
161161
// how the expression is handled. Additionally, `*` and `&` are not supported.
162-
bool try_variable_path = expr.find_first_of("*&->[]") == StringRef::npos;
162+
const bool try_variable_path =
163+
expr.find_first_of("*&->[]") == StringRef::npos;
163164
if (frame && try_variable_path) {
164165
VariableSP var_sp;
165166
Status status;

0 commit comments

Comments
 (0)