Преглед изворни кода

Use covariant return types.

Sascha Zelzer пре 13 година
родитељ
комит
8f0921f8df
1 измењених фајлова са 1 додато и 1 уклоњено
  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);                                               \
   }