]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.cpp
Amend 7e121117bb3203
[lyx.git] / src / insets / Inset.cpp
index 812aba5bfaa4ca8f07b6d8331d6c91f213567caf..b458c8181bfe74f50c049c6e3017c6f12f96f33b 100644 (file)
@@ -202,7 +202,7 @@ Buffer & Inset::buffer()
                                        << " name: " << iname);
                s << "LyX Code: " << lyxCode() << " name: " << from_ascii(iname);
                LATTEST(false);
-               throw ExceptionMessage(BufferException, 
+               throw ExceptionMessage(BufferException,
                        from_ascii("Inset::buffer_ member not initialized!"), s.str());
        }
        return *buffer_;
@@ -223,7 +223,7 @@ bool Inset::isBufferLoaded() const
 
 bool Inset::isBufferValid() const
 {
-       return buffer_ 
+       return buffer_
                && (isBufferLoaded() || buffer_->isClone());
 }
 
@@ -234,7 +234,7 @@ docstring Inset::layoutName() const
 }
 
 
-bool Inset::isFreeSpacing() const 
+bool Inset::isFreeSpacing() const
 {
        return getLayout().isFreeSpacing();
 }
@@ -298,14 +298,14 @@ InsetCode insetCode(string const & name)
 }
 
 
-string insetName(InsetCode c) 
+string insetName(InsetCode c)
 {
        build_translator();
        return insetnames[c].name;
 }
 
 
-docstring insetDisplayName(InsetCode c) 
+docstring insetDisplayName(InsetCode c)
 {
        build_translator();
        return insetnames[c].display_name;
@@ -316,7 +316,7 @@ void Inset::dispatch(Cursor & cur, FuncRequest & cmd)
 {
        if (buffer_ == 0) {
                lyxerr << "Unassigned buffer_ member in Inset::dispatch()" << std::endl;
-               lyxerr << "LyX Code: " << lyxCode() << " name: " 
+               lyxerr << "LyX Code: " << lyxCode() << " name: "
                       << insetName(lyxCode()) << std::endl;
        } else if (cur.buffer() != buffer_)
                lyxerr << "cur.buffer() != buffer_ in Inset::dispatch()" << std::endl;
@@ -414,7 +414,7 @@ bool Inset::getStatus(Cursor &, FuncRequest const & cmd,
                }
 
        case LFUN_IN_MATHMACROTEMPLATE:
-               // By default we're not in a MathMacroTemplate inset
+               // By default we're not in a InsetMathMacroTemplate inset
                flag.setEnabled(false);
                return true;
 
@@ -644,7 +644,7 @@ bool Inset::resetFontEdit() const
 }
 
 
-docstring Inset::completionPrefix(Cursor const &) const 
+docstring Inset::completionPrefix(Cursor const &) const
 {
        return docstring();
 }