]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[365-automatically-calculate-the-values-for-options-58-and-59] Removed extra traling...
authorFrancis Dupont <fdupont@isc.org>
Thu, 10 Jan 2019 14:33:28 +0000 (15:33 +0100)
committerFrancis Dupont <fdupont@isc.org>
Thu, 10 Jan 2019 14:33:28 +0000 (15:33 +0100)
src/lib/cc/data.h
src/lib/cc/simple_parser.h
src/lib/cc/tests/command_interpreter_unittests.cc
src/lib/cc/tests/simple_parser_unittest.cc

index a8989f09faa3c010e66ec0712517e0729b0cd09b..0e37d60f5dfbe911dd014ac41964acefe8382b2c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2018 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
@@ -746,7 +746,7 @@ void merge(ElementPtr element, ConstElementPtr other);
 /// negative means outbound and perhaps looping forever).
 /// @return a pointer to a fresh copy
 /// @throw raises a BadValue is a null pointer occurs.
-ElementPtr copy(ConstElementPtr from, int level = 100); 
+ElementPtr copy(ConstElementPtr from, int level = 100);
 
 /// @brief Compares the data with other using unordered lists
 ///
index c469839e59532f0011fb35c23a514da90af8df91..26341018ff8749fcaa7a7662de995932642c3222 100644 (file)
@@ -172,9 +172,9 @@ class SimpleParser {
     /// @param scope specified parameter will be extracted from this scope
     /// @param name name of the parameter
     /// @return a double value of the parameter
-    /// @throw DhcpConfigError if the parameter is not there or is not 
+    /// @throw DhcpConfigError if the parameter is not there or is not
     /// an Element::real
-    static double getDouble(const ConstElementPtr& scope, 
+    static double getDouble(const ConstElementPtr& scope,
                             const std::string& name);
 
 protected:
index 2f2b66119220009b473dda80f94b2480233b9100..1ab02a72b2b5d6a422c44e7b250d989ec56b4d5e 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -70,7 +70,7 @@ TEST(CommandInterpreterTest, parseAnswer) {
     EXPECT_THROW(parseAnswer(rcode, el("{ \"result\": [ 0 ] }")), CtrlChannelError);
     EXPECT_THROW(parseAnswer(rcode, el("{ \"result\": [ 1 ] }")), CtrlChannelError);
     EXPECT_THROW(parseAnswer(rcode, el("{ \"result\": [ 1, 1 ] }")), CtrlChannelError);
-    
+
     answer = el("{ \"result\": 0 }");
     arg = parseAnswer(rcode, answer);
     EXPECT_EQ(0, rcode);
index f9bb2f9b6e61e40054deb6d739b5f0d44c26acb6..a43dc6a4fbfb272865628b16ab401678d420af37 100644 (file)
@@ -242,7 +242,7 @@ TEST_F(SimpleParserTest, getIOAddress) {
 TEST_F(SimpleParserTest, getDouble) {
 
     SimpleParserClassTest parser;
-    std::string  json = 
+    std::string json =
     "{\n"
     "  \"string\" : \"12.3\",\n"
     "  \"bool\" : true, \n"