]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
test-dnsname: Fix "unnecessary parentheses in declaration of ‘name5’" 12944/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 22 Jun 2023 10:05:00 +0000 (12:05 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 22 Jun 2023 10:05:00 +0000 (12:05 +0200)
pdns/test-dnsname_cc.cc

index 43c1b900ddf649ced32610b3e02cf31ba71d130b..b3b442a46df6a8274d8b821ae231a0cd733eb73f 100644 (file)
@@ -1028,7 +1028,7 @@ BOOST_AUTO_TEST_CASE(test_getcommonlabels) {
   BOOST_CHECK_EQUAL(name3.getCommonLabels(name4), name3);
   BOOST_CHECK_EQUAL(name4.getCommonLabels(name3), name4);
 
-  const DNSName(name5);
+  const DNSName name5;
   BOOST_CHECK_EQUAL(name1.getCommonLabels(name5), DNSName());
   BOOST_CHECK_EQUAL(name5.getCommonLabels(name1), DNSName());
 }