Base: Add isNullOrEmpty string helper
This adds isNullOrEmpty string helper that cheks if string is... well null or empty. It is done to improve readability of the code and better express intent.
This commit is contained in:
@@ -71,7 +71,7 @@ bool Property::hasName() const
|
||||
|
||||
bool Property::isValidName(const char* name)
|
||||
{
|
||||
return name && name[0] != '\0';
|
||||
return !Base::Tools::isNullOrEmpty(name);
|
||||
}
|
||||
|
||||
std::string Property::getFullName() const
|
||||
|
||||
Reference in New Issue
Block a user