GCC warning.

This commit is contained in:
Roman Telezhynskyi 2020-05-11 17:44:53 +03:00
parent 21dd764d53
commit 56ec768777

View File

@ -277,7 +277,7 @@ void VPieceCarrouselPiece::on_ActionPieceMovedToLayer()
{ {
QAction *act = qobject_cast<QAction *>(sender()); QAction *act = qobject_cast<QAction *>(sender());
QVariant v = act->data(); QVariant v = act->data();
VPuzzleLayer *layer = (VPuzzleLayer *) v.value<VPuzzleLayer *>(); VPuzzleLayer *layer = v.value<VPuzzleLayer *>();
if(layer != nullptr) if(layer != nullptr)
{ {
layer->GetLayout()->MovePieceToLayer(m_piece, layer); layer->GetLayout()->MovePieceToLayer(m_piece, layer);