]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_atom.h
speed up math drawing
[features.git] / src / mathed / math_atom.h
index 8e78a4b0c8188047d3d1a070946aa27a4c0b65f4..2c79655c8a40d8f389134193dd702071fcaddb4b 100644 (file)
@@ -47,10 +47,10 @@ public:
        void operator=(MathAtom const &);
        /// change inset under the hood
        void reset(MathInset * p);
+       /// access to the inset (checked with gprof)
+       MathInset * nucleus() const { return nucleus_; }
        /// access to the inset
-       MathInset * nucleus() const;
-       /// access to the inset
-       MathInset * operator->() const;
+       MathInset * operator->() const { return nucleus_; }
 
 private:
        ///