Bläddra i källkod

Use covariant return types.

Sascha Zelzer 13 år sedan
förälder
incheckning
8f0921f8df
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Libs/Core/ctkException.h

+ 1 - 1
Libs/Core/ctkException.h

@@ -175,7 +175,7 @@ CTK_CORE_EXPORT QDebug operator<<(QDebug dbg, const ctkException& exc);
   {                                                                      \
     return NAME;                                                         \
   }                                                                      \
-  ctkException* CLS::clone() const                                       \
+  CLS* CLS::clone() const                                                \
   {                                                                      \
     return new CLS(*this);                                               \
   }