Allow empty file names in constructor, since empty filenames can now be

created by the default constrcutor anyway.
This prevents an assert in findtexfiles.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16168 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-12-04 13:45:08 +00:00
parent 493ec52c3f
commit 015abe1a5a

View File

@ -41,7 +41,7 @@ FileName::~FileName()
FileName::FileName(string const & abs_filename)
: name_(abs_filename)
{
BOOST_ASSERT(absolutePath(name_));
BOOST_ASSERT(empty() || absolutePath(name_));
BOOST_ASSERT(!contains(name_, '\\'));
}