[vlc-commits] gui: remove `break` after `return`

Eric Engestrom git at videolan.org
Sat Apr 2 17:13:33 CEST 2016


vlc | branch: master | Eric Engestrom <eric at engestrom.ch> | Sat Apr  2 15:43:24 2016 +0100| [a6adf926bdd54d6570c133089d08db94fb4c6bc2] | committer: Rémi Denis-Courmont

gui: remove `break` after `return`

Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6adf926bdd54d6570c133089d08db94fb4c6bc2
---

 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;



More information about the vlc-commits mailing list