]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3919] Passed objects by reference
authorFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 11:02:06 +0000 (13:02 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 11:02:06 +0000 (13:02 +0200)
src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
src/bin/dhcp6/tests/fqdn_unittest.cc

index 9b8e2247b78ecda19aca0b6533f4355487ba8d7e..2013b289184a03be4a491b59fde7e21ea17cb4af 100644 (file)
@@ -2086,7 +2086,7 @@ TEST_F(Dhcpv6SrvTest, relayOverrideAndClientClass) {
 /// @param codes a vector of option codes to be created
 /// @param payload specified payload (0 = fill payload with repeating option code)
 /// @return RSOO with nested options
-OptionPtr createRSOO(const std::vector<uint16_t> codes, uint8_t payload = 0) {
+OptionPtr createRSOO(const std::vector<uint16_t>& codes, uint8_t payload = 0) {
     OptionDefinitionPtr def = LibDHCP::getOptionDef(Option::V6, D6O_RSOO);
     if (!def) {
         isc_throw(BadValue, "Can't find RSOO definition");
index ed72b485f58ea8b49a1b9513b4dcc9d294337526..63885496d516674fbc6530450cb5fbe196010376 100644 (file)
@@ -389,7 +389,7 @@ public:
                             const std::string& exp_hostname,
                             const uint8_t client_flags =
                                 Option6ClientFqdn::FLAG_S,
-                            const IOAddress expected_address = IOAddress("2001:db8:1:1::dead:beef"),
+                            const IOAddress& expected_address = IOAddress("2001:db8:1:1::dead:beef"),
                             const bool include_oro = true) {
         // Create a message of a specified type, add server id and
         // FQDN option.