From: Stephan Witt Date: Sun, 14 Oct 2012 12:34:46 +0000 (+0200) Subject: Inset::setMouseHover() is const - InsetExternal::setMouseHover should be const too X-Git-Tag: 2.1.0beta1~1398 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=70ff68b5804a2d4a69f8fd36ca4fa5272a134c26;p=features.git Inset::setMouseHover() is const - InsetExternal::setMouseHover should be const too --- diff --git a/src/insets/InsetExternal.cpp b/src/insets/InsetExternal.cpp index ea51664978..c0f7225664 100644 --- a/src/insets/InsetExternal.cpp +++ b/src/insets/InsetExternal.cpp @@ -392,7 +392,7 @@ InsetExternal::~InsetExternal() } -bool InsetExternal::setMouseHover(BufferView const * bv, bool mouse_hover) +bool InsetExternal::setMouseHover(BufferView const * bv, bool mouse_hover) const { mouse_hover_[bv] = mouse_hover; return true; diff --git a/src/insets/InsetExternal.h b/src/insets/InsetExternal.h index fba0e7406b..bbe2162fec 100644 --- a/src/insets/InsetExternal.h +++ b/src/insets/InsetExternal.h @@ -113,7 +113,7 @@ public: /// std::string contextMenuName() const; /// - bool setMouseHover(BufferView const * bv, bool mouse_hover); + bool setMouseHover(BufferView const * bv, bool mouse_hover) const; /// bool clickable(int, int) const { return true; } private: