Commit d5b3dd17 authored by Danny Hindson's avatar Danny Hindson
Browse files

Improve isDictionaryPopulated method signature

parent e193fe83
......@@ -79,7 +79,8 @@ private:
const Kernel::PropertyManager &materialArgs);
Kernel::PropertyManager materialSettingsEnsureLegacyCompatibility(
const Kernel::PropertyManager &materialArgs);
bool isDictionaryPopulated(const Kernel::PropertyManager_const_sptr dict);
bool
isDictionaryPopulated(const Kernel::PropertyManager_const_sptr &dict) const;
};
} // namespace DataHandling
......
......@@ -418,7 +418,8 @@ void SetSample::assertNonNegative(
* @brief Checks if a json dictionary parameter is populated or not
* @param dict map
*/
bool SetSample::isDictionaryPopulated(const PropertyManager_const_sptr dict) {
bool SetSample::isDictionaryPopulated(
const PropertyManager_const_sptr &dict) const {
bool isPopulated = false;
if (dict)
if (dict->propertyCount() > 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment