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:
@@ -2342,7 +2342,7 @@ bool ViewProviderLink::getDetailPath(
|
||||
return false;
|
||||
}
|
||||
std::string _subname;
|
||||
if(subname && subname[0]) {
|
||||
if(!Base::Tools::isNullOrEmpty(subname)) {
|
||||
if (auto linked = ext->getLinkedObjectValue()) {
|
||||
if (const char *dot = strchr(subname,'.')) {
|
||||
if(subname[0]=='$') {
|
||||
|
||||
Reference in New Issue
Block a user