[Scummvm-git-logs] scummvm master -> fcfe0515343197c193648f11956519e1b1c287ba

bluegr noreply at scummvm.org
Thu Nov 6 22:34:17 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
fcfe051534 COMMON: Fixup doc comments in config-manager


Commit: fcfe0515343197c193648f11956519e1b1c287ba
    https://github.com/scummvm/scummvm/commit/fcfe0515343197c193648f11956519e1b1c287ba
Author: tunnelsociety (tunnelsociety at mm.st)
Date: 2025-11-07T00:34:13+02:00

Commit Message:
COMMON: Fixup doc comments in config-manager

Fixup 93925ff & 0646976

Co-authored-by: Filippos Karapetis <bluegr at gmail.com>

Changed paths:
    common/config-manager.h


diff --git a/common/config-manager.h b/common/config-manager.h
index 4ec23912111..15c672860fa 100644
--- a/common/config-manager.h
+++ b/common/config-manager.h
@@ -70,9 +70,6 @@ public:
 		bool           empty() const { return _entries.empty(); } /*!< Return true if the configuration is empty, i.e. has no [key, value] pairs, and false otherwise. */
 
 		bool           contains(const String &key) const { return _entries.contains(key); } /*!< Check whether the domain contains a @p key. */
-		/** Return the configuration value for the given key.
-		 *  If no entry exists for the given key in the configuration, it is created.
-		 */
 		/** Return the configuration value for the given key.
 		 *  @note This function does *not* create a configuration entry
 		 *  for the given key if it does not exist.
@@ -81,6 +78,9 @@ public:
 
 		void           setVal(const String &key, const String &value) { _entries.setVal(key, value); } /*!< Assign a @p value to a @p key. */
 
+		/** Return the configuration value for the given key.
+		 *  If no entry exists for the given key in the configuration, it is created.
+		 */
 		String &getOrCreateVal(const String &key) { return _entries.getOrCreateVal(key); }
 		String        &getVal(const String &key) { return _entries.getVal(key); } /*!< Retrieve the value of a @p key. */
 		const String  &getVal(const String &key) const { return _entries.getVal(key); } /*!< @overload */
@@ -89,8 +89,8 @@ public:
 		  * @return True if the key exists, false otherwise.
 		  * You can use this method if you frequently attempt to access keys that do not exist.
 		  */
-		const String &getValOrDefault(const String &key) const { return _entries.getValOrDefault(key); }
 		bool tryGetVal(const String &key, String &out) const { return _entries.tryGetVal(key, out); }
+		const String &getValOrDefault(const String &key) const { return _entries.getValOrDefault(key); }
 
 		void           clear() { _entries.clear(); } /*!< Clear all configuration entries in the domain. */
 




More information about the Scummvm-git-logs mailing list