Skip to content

Commit d1cc71f

Browse files
committed
Warning fix for cvv module.
1 parent d1aebcf commit d1cc71f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/cvv/test/test_reference.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ namespace opencv_test { namespace {
66

77
/**
88
* Makes sure that
9-
* - creating, reassigning and comparing `cvv::util::Reference<int>`s (from /src/util/util.hpp) works,
9+
* - creating, reassigning and comparing `cvv::util::Reference<int>`s (from /src/util/util.hpp) works,
1010
* as well as the
1111
* - `makeRef()` and `getPtr()` functions; that
1212
* - `Reference<const int>`s can be created with `makeRef(const int)`, `{const int}` initializer list
13-
* and via `Reference<const int>{int}` and, finally, that
14-
* - `cvv::util::Reference`s of super classes can be constructed with derived classes and
13+
* and via `Reference<const int>{int}` and, finally, that
14+
* - `cvv::util::Reference`s of super classes can be constructed with derived classes and
1515
* - `Reference`s to base classes can be `castTo()` `References` to the derived classes, but not the other way.
1616
*/
1717

@@ -71,7 +71,7 @@ TEST(ReferenceTest, ConstRefs)
7171

7272
TEST(ReferenceTest, ConstRefsFromMutable)
7373
{
74-
int i;
74+
int i = 0;
7575
Reference<const int> ref{ i };
7676
EXPECT_EQ(ref.getPtr(), &i);
7777
}

0 commit comments

Comments
 (0)