mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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:
parent
99cae6c723
commit
2c5a5bf52f
@ -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_, '\\'));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user