@@ -678,9 +678,10 @@ Library::Error Library::loadFunction(const tinyxml2::XMLElement * const node, co
678678 for (const tinyxml2::XMLElement *functionnode = node->FirstChildElement (); functionnode; functionnode = functionnode->NextSiblingElement ()) {
679679 const std::string functionnodename = functionnode->Name ();
680680 if (functionnodename == " noreturn" ) {
681- if (strcmp (functionnode->GetText (), " false" ) == 0 )
681+ const char * const text = functionnode->GetText ();
682+ if (strcmp (text, " false" ) == 0 )
682683 mNoReturn [name] = FalseTrueMaybe::False;
683- else if (strcmp (functionnode-> GetText () , " maybe" ) == 0 )
684+ else if (strcmp (text , " maybe" ) == 0 )
684685 mNoReturn [name] = FalseTrueMaybe::Maybe;
685686 else
686687 mNoReturn [name] = FalseTrueMaybe::True; // Safe
@@ -757,9 +758,9 @@ Library::Error Library::loadFunction(const tinyxml2::XMLElement * const node, co
757758 // Validate the validation expression
758759 const char *p = argnode->GetText ();
759760 if (!isCompliantValidationExpression (p))
760- return Error (ErrorCode::BAD_ATTRIBUTE_VALUE, (!p ? " \"\" " : argnode-> GetText () ));
761+ return Error (ErrorCode::BAD_ATTRIBUTE_VALUE, (!p ? " \"\" " : p ));
761762 // Set validation expression
762- ac.valid = argnode-> GetText () ;
763+ ac.valid = p ;
763764 }
764765 else if (argnodename == " minsize" ) {
765766 const char *typeattr = argnode->Attribute (" type" );
0 commit comments