mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-03 01:41:15 -03:00
[cppcheck] add const in several places
Found with constParameter, functionConst, constVariable, constArgument Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
ridiculousfish
parent
39861d54c5
commit
fee08a87e9
@@ -9,7 +9,7 @@
|
||||
static const wcstring VAR_fish_trace = L"fish_trace";
|
||||
|
||||
bool trace_enabled(const parser_t &parser) {
|
||||
auto &ld = parser.libdata();
|
||||
const auto &ld = parser.libdata();
|
||||
if (ld.suppress_fish_trace) return false;
|
||||
// TODO: this variable lookup is somewhat expensive, consider how to make this cheaper.
|
||||
return !parser.vars().get(VAR_fish_trace).missing_or_empty();
|
||||
|
||||
Reference in New Issue
Block a user