Skip to content

Commit

Permalink
Base: [skip ci] Modify GetASCII to include empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 23, 2021
1 parent 2808c4b commit 9f2dd4a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Base/Parameter.cpp
Expand Up @@ -732,11 +732,8 @@ std::string ParameterGrp::GetASCII(const char* Name, const char * pPreset) const
DOMNode *pcElem2 = pcElem->getFirstChild();
if (pcElem2)
return std::string(StrXUTF8(pcElem2->getNodeValue()).c_str());
else if (pPreset==0)
return std::string("");

else
return std::string(pPreset);
return std::string("");
}

std::vector<std::string> ParameterGrp::GetASCIIs(const char * sFilter) const
Expand Down

0 comments on commit 9f2dd4a

Please sign in to comment.