No need to build strings.

This commit is contained in:
Malcolm Tyrrell
2020-08-18 18:21:20 +01:00
parent e1a0163e7e
commit 0f6127e90e
5 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -59,9 +59,9 @@ namespace Ogre {
AI_WONT_RETURN void ThrowAttibuteError(const XmlReader *reader, const std::string &name, const std::string &error = "") AI_WONT_RETURN_SUFFIX;
AI_WONT_RETURN void ThrowAttibuteError(const XmlReader *reader, const std::string &name, const std::string &error) {
if (!error.empty()) {
throw DeadlyImportError(error, " in node '", std::string(reader->getNodeName()), "' and attribute '", name, "'");
throw DeadlyImportError(error, " in node '", reader->getNodeName(), "' and attribute '", name, "'");
} else {
throw DeadlyImportError("Attribute '", name, "' does not exist in node '", std::string(reader->getNodeName()), "'");
throw DeadlyImportError("Attribute '", name, "' does not exist in node '", reader->getNodeName(), "'");
}
}