diff --git a/components/resource/scenemanager.cpp b/components/resource/scenemanager.cpp index 92de2e0dd5..71f11e382e 100644 --- a/components/resource/scenemanager.cpp +++ b/components/resource/scenemanager.cpp @@ -26,8 +26,6 @@ #include #include -#include - #include #include diff --git a/components/sceneutil/visitor.cpp b/components/sceneutil/visitor.cpp index 169e07adae..e632e7ce91 100644 --- a/components/sceneutil/visitor.cpp +++ b/components/sceneutil/visitor.cpp @@ -67,10 +67,8 @@ namespace SceneUtil std::size_t foundUnderscore = originalNodeName.find(underscore); if (foundUnderscore != std::string::npos) - { std::replace(originalNodeName.begin(), originalNodeName.end(), '_', ' '); - //originalNodeName.replace(foundUnderscore.begin(), foundPageNumberEnd - foundPageNumber - 6, " ") ); - } + const std::string nodeName = originalNodeName; mMap.emplace(nodeName, &trans);