From a1225545e4fdaf6d9bf1bd23f3acad9cb63de259 Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Mon, 18 Apr 2016 14:34:07 +0200 Subject: [PATCH] Fixes compiler warnings. --- AdvancedDockingSystem/src/DropOverlay.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AdvancedDockingSystem/src/DropOverlay.cpp b/AdvancedDockingSystem/src/DropOverlay.cpp index e846a94..56094be 100644 --- a/AdvancedDockingSystem/src/DropOverlay.cpp +++ b/AdvancedDockingSystem/src/DropOverlay.cpp @@ -71,7 +71,7 @@ static QPixmap createDropIndicatorPixmap(const QPalette& pal, const QSizeF& size gradient.setColorAt(0.f, areaBackgroundColor); gradient.setColorAt(1.f, areaBackgroundColor.lighter(120)); break; - case CenterDropArea: + default: break; } if (areaRect.isValid()) @@ -328,8 +328,9 @@ static QPair gridPosForArea(const DropArea area) return qMakePair(QPoint(1, 0), (int) Qt::AlignRight | Qt::AlignVCenter); case ADS_NS::CenterDropArea: return qMakePair(QPoint(1, 1), (int) Qt::AlignCenter); + default: + return QPair(); } - return QPair(); } DropOverlayCross::DropOverlayCross(DropOverlay* overlay) :