]> git.lyx.org Git - lyx.git/commitdiff
src/support/filename.C: add assertion to ensure that no Windows-style
authorMichael Schmitt <michael.schmitt@teststep.org>
Sun, 3 Dec 2006 14:48:00 +0000 (14:48 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Sun, 3 Dec 2006 14:48:00 +0000 (14:48 +0000)
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

src/support/filename.C

index c0a01f541df2f9731c217249cbc4c97adc6448f4..330df317a1dd70904da45f327ab0121742b3ad9b 100644 (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_, '\\'));
 }