From 2bff3717635bb665b2c0c986addfa54734dfed0a Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Sat, 6 Aug 2022 14:34:56 +0200 Subject: [PATCH] Add a method to clear all Profile's set properties --- src/profile/Profile.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/profile/Profile.h b/src/profile/Profile.h index 1ce0c0f7..c90ba6f7 100644 --- a/src/profile/Profile.h +++ b/src/profile/Profile.h @@ -445,6 +445,15 @@ public: /** Returns true if no properties have been set in this Profile instance. */ bool isEmpty() const; + /** + * Clears all set properties in this profile. Afte calling this, isEmpty() + * will return true. + */ + void clear() + { + _propertyValues.clear(); + } + /** * Returns true if this profile is the built-in profile. */