]> git.donarmstrong.com Git - lilypond.git/commitdiff
simplify. Patch by Matthias
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 27 Mar 2005 12:35:06 +0000 (12:35 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 27 Mar 2005 12:35:06 +0000 (12:35 +0000)
Neeracher.

flower/include/virtual-methods.hh

index e4dcd8ade673bb938744430881b5d7020fef2a84..76ed3e9ea38baeb12846fb67cff101c6d97685ef 100644 (file)
@@ -25,17 +25,9 @@ demangle_classname (std::type_info const &);
    }; */
 
 #define VIRTUAL_COPY_CONSTRUCTOR(Base, name)                   \
-  /* Hack to fix constness: gcc >= 2.95 is correct in defining \
-     typeof (*this) in a const member function to be const.  */        \
-  virtual Base *clone_const_helper ()                          \
-  {                                                            \
-    return new name (*this);                                   \
-  }                                                            \
   virtual Base *clone () const                                 \
   {                                                            \
-    /* return new name (*this); */                             \
-    Base *urg = (Base *) this;                                 \
-    return urg->clone_const_helper ();                         \
+    return new name (*this);                                   \
   }
 
 #endif /* VIRTUAL_METHODS_HH */