瀏覽代碼

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);                                               \
   }