]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.h
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_atom.h
index 8e78a4b0c8188047d3d1a070946aa27a4c0b65f4..69d8b47c8dce2783ec71b7ab1b8f9d5f8c9a5513 100644 (file)
@@ -7,12 +7,12 @@
 #pragma interface
 #endif
 
-/** 
+/**
 The 'atom' is the major blob in math typesetting.  And 'atom' consists
 of a nucleus, an optional superscript, and an optional subscript.
 
 Exactly where the subscript and superscript are drawn depends on the
-size, and type, of the nucleus they are attached to.  
+size, and type, of the nucleus they are attached to.
 
 Jules
 
@@ -33,7 +33,7 @@ Andre'
 class MathInset;
 
 class MathAtom {
-public: 
+public:
        /// default constructor, object is useless, but we need it to put it into
        // std::containers
        MathAtom();
@@ -42,15 +42,15 @@ public:
        /// copy constructor, invokes nucleus_->clone()
        MathAtom(MathAtom const &);
        /// we really need to clean up
-       ~MathAtom(); 
+       ~MathAtom();
        /// assignment invokes nucleus_->clone()
        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:
        ///