]> git.lyx.org Git - lyx.git/commit
Produce an error on bad debug level values
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 26 Mar 2021 16:49:38 +0000 (17:49 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 26 Mar 2021 16:55:54 +0000 (17:55 +0100)
commit9ff27f8ce09a79e05bc1fe1c1d2e4d8c6ccbfc7e
tree83cb6b277db8676e110056072be13e2f16776777
parent0429b580e6f81cca3ff8e7da609ca868f39e5709
Produce an error on bad debug level values

Add new funciton Debug::badValue, that returns the first bad value in a debug
setting string.

Use it to parse the -dbg comand line option and to control the
execution of the debug-level-set lfun.

Use range-based loops in a few places.
src/LyX.cpp
src/frontends/qt/GuiApplication.cpp
src/support/debug.cpp
src/support/debug.h