Browse Source

test: minor changes (code coverage)

Michele Caini 5 years ago
parent
commit
4efbe24607
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/entt/meta/meta_pointer.cpp

+ 2 - 2
test/entt/meta/meta_pointer.cpp

@@ -9,7 +9,6 @@
 template<typename Type>
 template<typename Type>
 struct wrapped_shared_ptr {
 struct wrapped_shared_ptr {
     wrapped_shared_ptr(Type init): ptr{new Type {init}} {}
     wrapped_shared_ptr(Type init): ptr{new Type {init}} {}
-
     Type & deref() const { return *ptr; }
     Type & deref() const { return *ptr; }
 
 
 private:
 private:
@@ -18,8 +17,9 @@ private:
 
 
 struct self {
 struct self {
     using element_type = int;
     using element_type = int;
+    self(int v): value{v} {}
     const self & operator*() const { return *this; }
     const self & operator*() const { return *this; }
-    int value{};
+    int value;
 };
 };
 
 
 template<typename Type>
 template<typename Type>