From: 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Tue, 3 Sep 2019 00:38:54 +0000 (+0900) Subject: Fix copy constructor (#7102) X-Git-Tag: accepted/tizen/unified/20190903.052428~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c4729db1a5a927b584cedddd9843cc7f5dfadb5;p=platform%2Fcore%2Fml%2Fnnfw.git Fix copy constructor (#7102) Fix uninitialized field in copy constructor Signed-off-by: Hyeongseok Oh --- diff --git a/runtimes/neurun/core/include/graph/operand/PermuteFactor.h b/runtimes/neurun/core/include/graph/operand/PermuteFactor.h index 8e69892..480e95c 100644 --- a/runtimes/neurun/core/include/graph/operand/PermuteFactor.h +++ b/runtimes/neurun/core/include/graph/operand/PermuteFactor.h @@ -61,7 +61,10 @@ public: /** * @brief Construct PermuteFactor object by copy semantics. */ - PermuteFactor(const PermuteFactor &) = default; + PermuteFactor(const PermuteFactor &f) : _backend{f._backend}, _layout{f._layout} + { + // DO NOTHING + } /** * @brief Construct PermuteFactor object by move semantics. */