Revert "vector: fix a compile error of strict fallthrough case check."
authorsubhransu mohanty <sub.mohanty@samsung.com>
Mon, 20 May 2019 05:53:02 +0000 (14:53 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 22 May 2019 04:02:42 +0000 (13:02 +0900)
This reverts commit e1cf42ba8c1628f6c06cbb6acb78b0ac81521c8f.

The fall through code is as per design.

src/vector/vmatrix.cpp

index eaecabc..f2dc257 100644 (file)
@@ -98,8 +98,8 @@ VMatrix::MatrixType VMatrix::type() const
     case MatrixType::Project:
         if (!vIsZero(m13) || !vIsZero(m23) || !vIsZero(m33 - 1)) {
             mType = MatrixType::Project;
+            break;
         }
-        break;
     case MatrixType::Shear:
     case MatrixType::Rotate:
         if (!vIsZero(m12) || !vIsZero(m21)) {
@@ -108,18 +108,18 @@ VMatrix::MatrixType VMatrix::type() const
                 mType = MatrixType::Rotate;
             else
                 mType = MatrixType::Shear;
+            break;
         }
-        break;
     case MatrixType::Scale:
         if (!vIsZero(m11 - 1) || !vIsZero(m22 - 1)) {
             mType = MatrixType::Scale;
+            break;
         }
-        break;
     case MatrixType::Translate:
         if (!vIsZero(mtx) || !vIsZero(mty)) {
             mType = MatrixType::Translate;
+            break;
         }
-        break;
     case MatrixType::None:
         mType = MatrixType::None;
         break;