]> git.lyx.org Git - lyx.git/blobdiff - src/LayoutFile.cpp
Rename a couple routines in preparation for more.
[lyx.git] / src / LayoutFile.cpp
index 8b4bba35532f5ad543bf4657cda73c689237e185..b7abd795d0f6f5c5cea420656fa73fb14e8f89bc 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author John Levon
  *
  * Full author contact details are available in file CREDITS.
@@ -82,8 +82,7 @@ LayoutFile const & LayoutFileList::operator[](string const & classname) const
 }
 
 
-LayoutFile & 
-       LayoutFileList::operator[](string const & classname)
+LayoutFile & LayoutFileList::operator[](string const & classname)
 {
        LASSERT(haveClass(classname), /**/);
        return *classmap_[classname];
@@ -227,10 +226,11 @@ LayoutFileIndex LayoutFileList::addEmptyClass(string const & textclass)
        // the last parameter to true will suppress a warning message about missing
        // tex class.
        LayoutFile * tc = new LayoutFile(textclass, textclass, "Unknown text class " + textclass, true);
-       if (!tc->load(tempLayout.absFilename()))
+       if (!tc->load(tempLayout.absFilename())) {
                // The only way this happens is because the hardcoded layout file above
                // is wrong.
                LASSERT(false, /**/);
+       }
        classmap_[textclass] = tc;
        return textclass;
 }
@@ -275,7 +275,7 @@ LayoutFileIndex
                                // There will be only one textclass with this name, even if different
                                // layout files are loaded from different directories.
                                if (haveClass(textclass)) {
-                                       LYXERR0("Exisint textclass " << textclass << " is redefined by " << fullName);
+                                       LYXERR0("Existing textclass " << textclass << " is redefined by " << fullName);
                                        delete classmap_[textclass];
                                }
                                classmap_[textclass] = tmpl;