Commit 8e771f61 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[#773 FIX] remove unused variable warning

using fancy c++17 feature
parent 359bb174
......@@ -305,7 +305,10 @@ void WTransferFunction2DGUIWidget::insertWidget( Shapes shape,
dataChanged();
}
void WTransferFunction2DGUIWidget::updateWidget( Shapes shape, std::vector<QPointF> points, const QColor * const color, const QPointF &pos )
void WTransferFunction2DGUIWidget::updateWidget( Shapes shape,
std::vector<QPointF> points,
const QColor * const color,
[[maybe_unused]] const QPointF &pos )
{
WTransferFunction2DShapeWidget *newShapeWidget( new WTransferFunction2DShapeWidget( this, shape, *color, points ) );
scene->addItem( newShapeWidget );
......
......@@ -128,7 +128,7 @@ public:
* @param color
* @param pos
*/
void updateWidget( Shapes shape, std::vector<QPointF> points, const QColor * const color, const QPointF &pos );
void updateWidget( Shapes shape, std::vector<QPointF> points, const QColor * const color, [[maybe_unused]] const QPointF &pos );
/**
* @brief Get the pointer to the Animator connected to the 2DTF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment