From 6172a07a9d578baf34c1a428f2c29a088f02dc68 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 16 Dec 2008 14:13:02 +0000 Subject: [PATCH] Constness and a typo. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27894 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetLayout.cpp | 4 ++-- src/insets/InsetLayout.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp index c4b6e896c6..c8b869d47e 100644 --- a/src/insets/InsetLayout.cpp +++ b/src/insets/InsetLayout.cpp @@ -70,7 +70,7 @@ InsetLayout::InsetLaTeXType translateLaTeXType(std::string const & str) } -bool InsetLayout::read(Lexer & lex, TextClass & tclass) +bool InsetLayout::read(Lexer & lex, TextClass const & tclass) { name_ = support::subst(lex.getDocString(), '_', ' '); // FIXME We need to check for name_.empty() here, and @@ -149,7 +149,7 @@ bool InsetLayout::read(Lexer & lex, TextClass & tclass) } switch (le) { // FIXME - // Perhaps a mroe elegant way to deal with the next two would be the + // Perhaps a more elegant way to deal with the next two would be the // way this sort of thing is handled in Layout::read(), namely, by // using the Lexer. case IL_LYXTYPE: { diff --git a/src/insets/InsetLayout.h b/src/insets/InsetLayout.h index 9b5865c907..06aa53a5ba 100644 --- a/src/insets/InsetLayout.h +++ b/src/insets/InsetLayout.h @@ -53,7 +53,7 @@ public: ILT_ERROR }; /// - bool read(Lexer & lexrc, TextClass & tclass); + bool read(Lexer & lexrc, TextClass const & tclass); /// docstring name() const { return name_; }; /// -- 2.39.5