Commit c4e8622f authored by Francis Dupont's avatar Francis Dupont
Browse files

[561-make-kea-to-build-on-last-macos-xcode] Fixed self assignment warnings

parent 36f127e5
// Copyright (C) 2009-2018 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2009-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -450,7 +450,7 @@ TEST_F(NameTest, assignment) {
EXPECT_EQ(copy3, example_name);
// Self assignment
copy = copy;
copy = *©
EXPECT_EQ(example_name, copy);
}
......
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -90,7 +90,7 @@ TEST_F(Rdata_AFSDB_Test, assignment) {
EXPECT_EQ(0, copy3.compare(rdata_afsdb));
// Self assignment
copy = copy;
copy = *©
EXPECT_EQ(0, copy.compare(rdata_afsdb));
}
......
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -129,7 +129,7 @@ TYPED_TEST(Rdata_DS_LIKE_Test, assignment_DS_LIKE) {
EXPECT_EQ(0, copy3.compare(this->rdata_ds_like));
// Self assignment
copy = copy;
copy = *©
EXPECT_EQ(0, copy.compare(this->rdata_ds_like));
}
......
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -165,7 +165,7 @@ TEST_F(Rdata_MINFO_Test, assignment) {
EXPECT_EQ(0, copy3.compare(rdata_minfo));
// Self assignment
copy = copy;
copy = *©
EXPECT_EQ(0, copy.compare(rdata_minfo));
}
......
// Copyright (C) 2011-2017 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -97,7 +97,7 @@ TEST_F(Rdata_SRV_Test, assignment) {
EXPECT_EQ(0, copy3.compare(rdata_srv));
// Self assignment
copy = copy;
copy = *©
EXPECT_EQ(0, copy.compare(rdata_srv));
}
......
// Copyright (C) 2010-2017 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2010-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -330,7 +330,7 @@ TEST_F(Rdata_TSIG_Test, assignment) {
EXPECT_EQ(0, copy3.compare(rdata_tsig));
// Self assignment
copy = copy;
copy = *©
EXPECT_EQ(0, copy.compare(rdata_tsig));
}
......
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -353,7 +353,7 @@ TYPED_TEST(Rdata_TXT_LIKE_Test, assignment) {
EXPECT_EQ(0, rdata4.compare(rdata1));
// Self assignment
rdata2 = rdata2;
rdata2 = *&rdata2;
EXPECT_EQ(0, rdata2.compare(rdata1));
}
......
// Copyright (C) 2010-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2010-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -393,7 +393,7 @@ TEST_F(Rdata_Unknown_Test, assignment) {
EXPECT_EQ(0, copy3.compare(rdata_unknown));
// Self assignment
copy = copy;
copy = *©
EXPECT_EQ(0, copy.compare(rdata_unknown));
}
......
// Copyright (C) 2010-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2010-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
......@@ -152,8 +152,8 @@ TEST_F(TSIGKeyTest, assignment) {
delete copy2;
compareTSIGKeys(original, copy3);
// self assignment
copy = copy;
// Self assignment
copy = *©
compareTSIGKeys(original, copy);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment