Sysinternals / SysmonForLinux

MIT License
1.74k stars 184 forks source link

Use reference vars for iteration in sysmonLogView.cpp #32

Closed ckane closed 3 years ago

ckane commented 3 years ago

The prior implementation declared a loop-local copy for each of the iterators on filters & eventIdFields in processCmdLine. Issue #23 points out that this causes a compilation failure when -Werror -Wall is used, because this introduces an inefficiency. This change makes these all references, which saves the superfluous copies and makes the code compile again.

Fixes #23