Explorar o código

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 %!s(int64=15) %!d(string=hai) anos
pai
achega
6c892419cd
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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);