Fix Coverity issue 06/271506/2
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 22 Feb 2022 07:27:59 +0000 (16:27 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 22 Feb 2022 09:49:11 +0000 (18:49 +0900)
- Initialized mData, which is std::array type, explicitly.
 Then, BitSet constructor does not need to fill it with zero.

Change-Id: I40bd13bab1603633afc21a25917f361553b9a402
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
dali/devel-api/adaptor-framework/accessibility-bitset.h

index 2606291..cdb5410 100644 (file)
@@ -134,17 +134,9 @@ public:
   // Constructors
 
   /**
-   * @brief Constructs a new BitSet with all bits set to 0.
-   *
-   * Equivalent to the pseudocode:
-   * @code
-   * for(i = 0; i < max; ++i) bits[i] = 0;
-   * @endcode
+   * @brief Constructor.
    */
-  BitSet()
-  {
-    std::fill(mData.begin(), mData.end(), 0u);
-  }
+  BitSet() = default;
 
   BitSet(const BitSet&) = default;
 
@@ -398,7 +390,7 @@ private:
     return result;
   }
 
-  ArrayType mData;
+  ArrayType mData{};
 };
 
 /**