From 93e39157b613b25468800af89f62515b4e857e55 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sat, 1 Aug 2009 21:39:14 +0000 Subject: [PATCH] Add const versions of Inset::asInsetMath. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30819 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/Inset.h | 2 ++ src/mathed/InsetMath.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/insets/Inset.h b/src/insets/Inset.h index 0f43557991..33e0c59fa3 100644 --- a/src/insets/Inset.h +++ b/src/insets/Inset.h @@ -121,6 +121,8 @@ public: /// identification as math inset virtual InsetMath * asInsetMath() { return 0; } + /// identification as math inset + virtual InsetMath const * asInsetMath() const { return 0; } /// true for 'math' math inset, but not for e.g. mbox virtual bool inMathed() const { return false; } /// is this inset based on the InsetText class? diff --git a/src/mathed/InsetMath.h b/src/mathed/InsetMath.h index 4bbf4a00a5..538b0b63cc 100644 --- a/src/mathed/InsetMath.h +++ b/src/mathed/InsetMath.h @@ -95,6 +95,8 @@ class InsetMath : public Inset { public: /// identification as math inset InsetMath * asInsetMath() { return this; } + /// identification as math inset + InsetMath const * asInsetMath() const { return this; } /// this is overridden in math text insets (i.e. mbox) bool inMathed() const { return true; } -- 2.39.2