瀏覽代碼

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