src/support/filename.C: add assertion to ensure that no Windows-style

file name is used internally (as suggested by Georg)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16159 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2006-12-03 14:48:00 +00:00
parent 99cae6c723
commit 2c5a5bf52f

View File

@ -42,6 +42,7 @@ FileName::FileName(string const & abs_filename)
: name_(abs_filename)
{
BOOST_ASSERT(absolutePath(name_));
BOOST_ASSERT(!contains(name_, '\\'));
}
@ -49,6 +50,7 @@ void FileName::set(string const & name)
{
name_ = name;
BOOST_ASSERT(absolutePath(name_));
BOOST_ASSERT(!contains(name_, '\\'));
}