Base: make getAttribute template

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-25 20:32:11 +01:00
parent 7f49550dee
commit 2b1aec0041
64 changed files with 834 additions and 675 deletions

View File

@@ -1495,7 +1495,7 @@ void ProfileBased::handleChangedPropertyName(Base::XMLReader & reader, const cha
// read my element
reader.readElement("Link");
// get the value of my attribute
std::string name = reader.getAttribute("value");
std::string name = reader.getAttribute<const char*>("value");
if (!name.empty()) {
App::Document* document = getDocument();