Explorar o código

Use covariant return types.

Sascha Zelzer %!s(int64=13) %!d(string=hai) anos
pai
achega
8f0921f8df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);                                               \
   }