mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-08 18:56:48 +08:00
MSVC Fix compiler warning
MSVC hints for this line: Assigning by value when a const-reference would suffice, use const auto& instead.
This commit is contained in:
parent
2898ae679f
commit
31d16e6013
@ -2280,7 +2280,7 @@ namespace chaiscript {
|
|||||||
}
|
}
|
||||||
build_match<eval::Dot_Access_AST_Node<Tracer>>(prev_stack_top);
|
build_match<eval::Dot_Access_AST_Node<Tracer>>(prev_stack_top);
|
||||||
} else if (Eol()) {
|
} else if (Eol()) {
|
||||||
auto start = --m_position;
|
const auto& start = --m_position;
|
||||||
while (Eol()) {
|
while (Eol()) {
|
||||||
}
|
}
|
||||||
if (Symbol(".")) {
|
if (Symbol(".")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user