Skip to content

Commit a632160

Browse files
authored
Merge pull request Tencent#1388 from yhager/yhager/clang-7
silence clang-7 self-assign-overloaded warning
2 parents 595ed48 + 0cc44c8 commit a632160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unittest/pointertest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ TEST(Pointer, Assignment) {
503503
EXPECT_STREQ("0", q.GetTokens()[1].name);
504504
EXPECT_EQ(0u, q.GetTokens()[1].index);
505505
EXPECT_NE(&p.GetAllocator(), &q.GetAllocator());
506-
q = q;
506+
q = static_cast<const Pointer &>(q);
507507
EXPECT_TRUE(q.IsValid());
508508
EXPECT_EQ(2u, q.GetTokenCount());
509509
EXPECT_EQ(3u, q.GetTokens()[0].length);

0 commit comments

Comments
 (0)