fix warnings

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5619 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-12 23:50:56 +00:00
parent 87bcc2eb1c
commit 2c3c30c8f2
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-11-12 John Levon <levon@movementarian.org>
* biblio.C: fix warnings
2002-11-12 Angus Leeming <leeming@lyx.org> 2002-11-12 Angus Leeming <leeming@lyx.org>
* ControlSpellchecker.C (check): fix crash * ControlSpellchecker.C (check): fix crash

View File

@ -239,11 +239,11 @@ string const getInfo(InfoMap const & map, string const & key)
namespace { namespace {
// Escape special chars. // Escape special chars.
// All characters are literals except: .|*?+(){}[]^$\ // All characters are literals except: '.|*?+(){}[]^$\'
// These characters are literals when preceded by a "\", which is done here // These characters are literals when preceded by a "\", which is done here
string const escape_special_chars(string const & expr) string const escape_special_chars(string const & expr)
{ {
// Search for all chars .|*?+(){}[^$]\ // Search for all chars '.|*?+(){}[^$]\'
// Note that '[', ']' and '\' must be escaped. // Note that '[', ']' and '\' must be escaped.
// This is a limitation of boost::regex, but all other chars in BREs // This is a limitation of boost::regex, but all other chars in BREs
// are assumed literal. // are assumed literal.