fix clang warnings

--improve readability of the build process when
using clang by fixing small things to not show
some warnings
v0.7
Michail Vourlakos 7 years ago
parent eaf49364ee
commit 2e3139239e

@ -388,7 +388,7 @@ void DockConfigView::updateLaunchersForGroup(int groupInt)
//! as a start point
if (dockCorona && dockCorona->layoutManager() && dockCorona->layoutManager()->currentLayout()) {
if ((group == Dock::LayoutLaunchers && dockCorona->layoutManager()->currentLayout()->launchers().isEmpty())
|| group == Dock::GlobalLaunchers && dockCorona->universalSettings()->launchers().isEmpty()) {
|| (group == Dock::GlobalLaunchers && dockCorona->universalSettings()->launchers().isEmpty())) {
Plasma::Containment *c = m_dockView->containment();

@ -425,6 +425,10 @@ QRegion DockCorona::availableScreenRegion(int id) const
}
break;
default:
//! bypass clang warnings
break;
}
}
}
@ -477,6 +481,10 @@ QRect DockCorona::availableScreenRect(int id) const
case Plasma::Types::BottomEdge:
available.setBottomLeft({available.x(), dockRect.top()});
break;
default:
//! bypass clang warnings
break;
}
}
}

@ -568,6 +568,10 @@ QRect DockView::maximumNormalGeometry()
maxGeometry.setRect(xPos, yPos, maxWidth, maxHeight);
break;
default:
//! bypass clang warnings
break;
}
//! this is needed in order to preserve that the top dock will be above

Loading…
Cancel
Save