Add a FIXME.

(cherry picked from commit 4363ff2a93aa82ce2bcdc36351f0c041aff9f5bd)
This commit is contained in:
Richard Heck 2013-04-06 18:07:07 -04:00
parent 26dd4d0c15
commit 72aee2a9c5

View File

@ -220,6 +220,8 @@ string layoutpost =
LayoutFileIndex LayoutFileList::addEmptyClass(string const & textclass)
{
// FIXME This could be simplified a bit to call TextClass::read(string, ReadType).
FileName const tempLayout = FileName::tempName("basic_layout");
ofstream ofs(tempLayout.toFilesystemEncoding().c_str());
// This writes a very basic class, but it also attempts to include
@ -249,7 +251,8 @@ LayoutFileIndex LayoutFileList::addEmptyClass(string const & textclass)
<< layoutpost;
ofs2.close();
if (!tc->load(tempLayout.absFileName())) {
// This can only happen if the hardcoded file above is wrong.
// This can only happen if the hardcoded file above is wrong
// or there is some weird filesystem error.
LASSERT(false, /* */);
}
}