]> git.lyx.org Git - features.git/commit
Rewrite stripName without regex
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 6 Jul 2017 13:26:32 +0000 (15:26 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 6 Jul 2017 13:26:32 +0000 (15:26 +0200)
commit0ba385800ef7a3293f02349bac70663c85416721
treef86cce8660ba74cb84a5b1d3ca5bf43b071ceef2
parent02c9d2e67c16400588dfb103df284121520912a0
Rewrite stripName without regex

Using a regular expression to find /src/ or \src\ in a string is overkill,
and since regexes can throw exceptions, it makes coverity nervous.

The new code is simpler anyway.
src/support/debug.cpp