From 61bced27df3769f193ce586f4548864c4aba3f5c Mon Sep 17 00:00:00 2001 From: Alexandr Arutjunov Date: Thu, 29 Sep 2016 23:38:24 +0300 Subject: [PATCH] [*] Removed Boost dependency. --- code/AMFImporter.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/code/AMFImporter.cpp b/code/AMFImporter.cpp index 300766dad..6231f3d18 100644 --- a/code/AMFImporter.cpp +++ b/code/AMFImporter.cpp @@ -13,7 +13,6 @@ #include "DefaultIOSystem.h" // Header files, Boost. -#include #include // Header files, stdlib. @@ -121,12 +120,12 @@ void AMFImporter::Throw_CloseNotFound(const std::string& pNode) void AMFImporter::Throw_IncorrectAttr(const std::string& pAttrName) { - throw DeadlyImportError(boost::str(boost::format("Node <%s> has incorrect attribute \"%s\".") % mReader->getNodeName() % pAttrName)); + throw DeadlyImportError("Node <" + std::string(mReader->getNodeName()) + "> has incorrect attribute \"" + pAttrName + "\"."); } void AMFImporter::Throw_IncorrectAttrValue(const std::string& pAttrName) { - throw DeadlyImportError(boost::str(boost::format("Attribute \"%s\" in node <%s> has incorrect value.") % pAttrName % mReader->getNodeName())); + throw DeadlyImportError("Attribute \"" + pAttrName + "\" in node <" + std::string(mReader->getNodeName()) + "> has incorrect value."); } void AMFImporter::Throw_MoreThanOnceDefined(const std::string& pNodeType, const std::string& pDescription) @@ -136,7 +135,7 @@ void AMFImporter::Throw_MoreThanOnceDefined(const std::string& pNodeType, const void AMFImporter::Throw_ID_NotFound(const std::string& pID) const { - throw DeadlyImportError(boost::str(boost::format("Not found node with name \"%s\".") % pID)); + throw DeadlyImportError("Not found node with name \"" + pID + "\"."); } /*********************************************************************************************************************************************/ @@ -185,13 +184,13 @@ size_t sk_idx; casu_cres: - if(!found) throw DeadlyImportError(boost::str(boost::format("Unknown node \"%s\" in %s.") % nn % pParentNodeName)); + if(!found) throw DeadlyImportError("Unknown node \"" + nn + "\" in " + pParentNodeName + "."); if(!close_found) Throw_CloseNotFound(nn); if(!skipped_before[sk_idx]) { skipped_before[sk_idx] = true; - LogWarning(boost::str(boost::format("Skipping node \"%s\" in %s.") % nn % pParentNodeName)); + LogWarning("Skipping node \"" + nn + "\" in " + pParentNodeName + "."); } }