]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#99,!197] Addressed review comments.
authorMarcin Siodelski <marcin@isc.org>
Fri, 11 Jan 2019 18:32:33 +0000 (19:32 +0100)
committerMarcin Siodelski <marcin@isc.org>
Mon, 14 Jan 2019 12:18:47 +0000 (07:18 -0500)
src/lib/dhcpsrv/cfgmgr.h
src/lib/dhcpsrv/srv_config.h
src/lib/process/config_base.h

index 69bf61df39de33c53bfa18c38af7a1736032e672..5df381bcc30c4abd10f39c1ebb98e718f8641427 100644 (file)
@@ -231,7 +231,7 @@ public:
     /// @return non-null pointer to the staging configuration.
     SrvConfigPtr getStagingCfg();
 
-    /// @brief Creates external configuration and returns pointer to it.
+    /// @brief Creates an external configuration and returns pointer to it.
     ///
     /// External configurations are those that come from other sources than
     /// from the configuration file, e.g. a database or a command. They
index a2b4c76611d2dad190ba3c4b50307e31110b5cf1..c30e1304fd5e7696798e1a18b23ddebfd759384b 100644 (file)
@@ -479,7 +479,7 @@ public:
     ///
     /// This method is used when two or more configurations held in the
     /// @c SrvConfig objects need to be combined into a single configuration.
-    /// Specifically, when the configuration backend is used, the part of
+    /// Specifically, when the configuration backend is used, then part of
     /// the server configuration comes from the configuration file and
     /// stored in the staging configuration. The other part of the
     /// configuration comes from the database. The configuration fetched
@@ -498,7 +498,7 @@ public:
     /// The data that do not overlap between the two objects is simply
     /// inserted into this configuration.
     ///
-    /// @note The call to @c merge may modify the data in the @c other
+    /// @warning The call to @c merge may modify the data in the @c other
     /// object. Therefore, the caller must not rely on the data held
     /// in the @c other object after the call to @c merge. Also, the
     /// data held in @c other must not be modified after the call to
index 9bb8884bf2bcbbed2b4f98bf13f7ac991fcf9491..8de72f2e92fa42f3249c93accfb6223ce5729b63 100644 (file)
@@ -66,6 +66,15 @@ public:
     /// existing configuration if the new logging configuration is
     /// non-null and non-empty.
     ///
+    /// @warning The call to @c merge may modify the data in the @c other
+    /// object. Therefore, the caller must not rely on the data held
+    /// in the @c other object after the call to @c merge. Also, the
+    /// data held in @c other must not be modified after the call to
+    /// @c merge because it may affect the merged configuration.
+    ///
+    /// If a derivation of this class implements the @c merge method
+    /// it should call @c ConfigBase::merge.
+    ///
     /// @param other the other configuration to be merged into this
     /// configuration.
     virtual void merge(const ConfigBase& other);