소스 검색

BUG: Widgets/ctkTransferFunctionItem - Fix warning and added separator comment between function

The following warning has been fixed:
warning C4099: 'ctkControlPoint' : type name first seen using 'struct' now seen using 'class'
Jean-Christophe Fillion-Robin 15 년 전
부모
커밋
6c892419cd
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      Libs/Widgets/ctkTransferFunctionItem.h

+ 4 - 1
Libs/Widgets/ctkTransferFunctionItem.h

@@ -29,7 +29,7 @@
 #include "ctkPimpl.h"
 #include "ctkTransferFunction.h"
 
-class ctkControlPoint;
+struct ctkControlPoint;
 class ctkTransferFunctionItemPrivate;
 
 /// 
@@ -74,16 +74,19 @@ private:
   CTK_DECLARE_PRIVATE(ctkTransferFunctionItem);
 };
 
+//-----------------------------------------------------------------------------
 void ctkTransferFunctionItem::setRect(qreal x, qreal y, qreal width, qreal height)
 {
   this->setRect(QRectF(x,y,width,height));
 }
 
+//-----------------------------------------------------------------------------
 qreal ctkTransferFunctionItem::y(const ctkPoint& p)const
 {
   return this->y(p.Value);
 }
 
+//-----------------------------------------------------------------------------
 QColor ctkTransferFunctionItem::color(const ctkPoint& p)const
 {
   return this->color(p.Value);