]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#174,!414] Corrected whitespaces and copyright dates.
authorMarcin Siodelski <marcin@isc.org>
Wed, 24 Jul 2019 10:47:43 +0000 (12:47 +0200)
committerThomas Markwalder <tmark@isc.org>
Thu, 25 Jul 2019 14:25:42 +0000 (10:25 -0400)
As a result of the review.

src/lib/http/date_time.cc
src/lib/http/date_time.h
src/lib/util/boost_time_utils.cc
src/lib/util/boost_time_utils.h
src/lib/util/tests/boost_time_utils_unittest.cc

index e118bf3fecd8db13e1f8fff16dd46cb6bfc44443..cd7824a5bdb2cee35077267d9960a2a1fc418f0e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2016-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-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
index 309f5a19038f601f4a04d3dedea0c9643a1f16fc..ba96ba3415a500ba4c413e0b39c377c065f86da7 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-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
@@ -43,8 +43,8 @@ public:
 
     /// @brief Default constructor.
     ///
-    /// Sets current universal time as time value. 
-    /// Time resolution is to seconds (i.e no fractional seconds). 
+    /// Sets current universal time as time value.
+    /// Time resolution is to seconds (i.e no fractional seconds).
     HttpDateTime();
 
     /// @brief Construct from @c boost::posix_time::ptime object.
index e35f3a1f750fc529b1c4bd67113709874ef7eaa2..d0fb870d379d371ca0ed619fac4c41bfcbbe7be3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-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
@@ -37,9 +37,9 @@ isc::util::durationToText(boost::posix_time::time_duration dur, size_t fsecs_pre
             }
 
             width = fsecs_precision;
-        } 
+        }
 
-      s << "." << std::setw(width) 
+      s << "." << std::setw(width)
         << std::setfill('0')
         << fsecs;
     }
index 74ed36d392a8f586d052248ddcd6c2313928971b..d069af534661302fdf85adae59f503c424beddb4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-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
@@ -32,7 +32,7 @@ const size_t DEFAULT_FRAC_SECS=boost::posix_time::time_duration::num_fractional_
 /// Zero omits the value.
 ///
 /// @return a string representing time
-std::string ptimeToText(boost::posix_time::ptime t, 
+std::string ptimeToText(boost::posix_time::ptime t,
                         size_t fsecs_precision = DEFAULT_FRAC_SECS);
 
 /// @brief Converts StatsDuration to text
index db80d7f9127ab5953a4a09dfa1afcc26268fbaac..ee981cce7b48d14ab1b33459a460176c767419e3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-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
@@ -30,9 +30,9 @@ TEST(BoostTimeUtilsTest, epoch) {
     for (int precision = 0; precision <= DEFAULT_FRAC_SECS; ++precision) {
         if (precision == 1) {
             expected.push_back('.');
-        } 
+        }
 
-        if (precision >= 1) { 
+        if (precision >= 1) {
             expected.push_back('0');
         }
 
@@ -42,7 +42,7 @@ TEST(BoostTimeUtilsTest, epoch) {
 
     // Expected string should have same precision as default, so
     // test the default.
-    sepoch = ptimeToText(pepoch); 
+    sepoch = ptimeToText(pepoch);
     EXPECT_EQ(expected, sepoch);
 
     // Now test a requested precision beyond default.  We should
@@ -64,7 +64,7 @@ TEST(BoostTimeUtilsTest, bastilleDay) {
         if (precision == 1) {
             expected.push_back('.');
             expected.push_back('5');
-        } else if (precision > 1) { 
+        } else if (precision > 1) {
             expected.push_back('0');
         }
 
@@ -74,7 +74,7 @@ TEST(BoostTimeUtilsTest, bastilleDay) {
 
     // Expected string should have same precision as default, so
     // test the default.
-    sbast = ptimeToText(pbast); 
+    sbast = ptimeToText(pbast);
     EXPECT_EQ(expected, sbast);
 
     // Now test a requested precision beyond default.  We should