[vlc-devel] [PATCH 2/5] gui: remove `break` after `return`
Eric Engestrom
eric at engestrom.ch
Sat Apr 2 16:43:24 CEST 2016
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
---
modules/gui/qt/components/playlist/playlist_model.cpp | 1 -
modules/gui/skins2/utils/position.cpp | 8 --------
2 files changed, 9 deletions(-)
diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp b/modules/gui/qt/components/playlist/playlist_model.cpp
index 3566295..5a8986c 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -998,7 +998,6 @@ bool PLModel::isSupportedAction( actions action, const QModelIndex &index ) cons
return ( canEdit() && isTree() );
case ACTION_RENAMENODE:
return ( index != rootIndex() ) && !isLeaf( index );
- break;
case ACTION_CLEAR:
return rowCount() && canEdit();
case ACTION_ENQUEUEFILE:
diff --git a/modules/gui/skins2/utils/position.cpp b/modules/gui/skins2/utils/position.cpp
index 9ff9442..98890eb 100644
--- a/modules/gui/skins2/utils/position.cpp
+++ b/modules/gui/skins2/utils/position.cpp
@@ -123,11 +123,9 @@ int Position::getLeft() const
case kLeftTop:
case kLeftBottom:
return m_rRect.getLeft() + m_left;
- break;
case kRightTop:
case kRightBottom:
return m_rRect.getLeft() + m_rRect.getWidth() + m_left - 1;
- break;
}
// Avoid a warning
return 0;
@@ -151,11 +149,9 @@ int Position::getTop() const
case kLeftTop:
case kRightTop:
return m_rRect.getTop() + m_top;
- break;
case kRightBottom:
case kLeftBottom:
return m_rRect.getTop() + m_rRect.getHeight() + m_top - 1;
- break;
}
// Avoid a warning
return 0;
@@ -179,11 +175,9 @@ int Position::getRight() const
case kLeftTop:
case kLeftBottom:
return m_rRect.getLeft() + m_right;
- break;
case kRightTop:
case kRightBottom:
return m_rRect.getLeft() + m_rRect.getWidth() + m_right - 1;
- break;
}
// Avoid a warning
return 0;
@@ -207,11 +201,9 @@ int Position::getBottom() const
case kLeftTop:
case kRightTop:
return m_rRect.getTop() + m_bottom;
- break;
case kLeftBottom:
case kRightBottom:
return m_rRect.getTop() + m_rRect.getHeight() + m_bottom - 1;
- break;
}
// Avoid a warning
return 0;
--
2.8.0
More information about the vlc-devel
mailing list