mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-07 00:45:34 +00:00
Use std::string_view
This commit is contained in:
parent
dab982cba6
commit
ae68f4600b
2 changed files with 2 additions and 2 deletions
|
@ -663,7 +663,7 @@ namespace Resource
|
|||
node->accept(rigFinder);
|
||||
for (osg::Node* foundRigNode : rigFinder.mFoundNodes)
|
||||
{
|
||||
if (foundRigNode->libraryName() == std::string("osgAnimation"))
|
||||
if (foundRigNode->libraryName() == std::string_view("osgAnimation"))
|
||||
{
|
||||
osgAnimation::RigGeometry* foundRigGeometry = static_cast<osgAnimation::RigGeometry*>(foundRigNode);
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace SceneUtil
|
|||
{
|
||||
// If an osgAnimation bone/transform, ensure underscores in name are replaced with spaces
|
||||
// this is for compatibility reasons
|
||||
if (node.libraryName() == std::string("osgAnimation") && node.className() == std::string("Bone"))
|
||||
if (node.libraryName() == std::string_view("osgAnimation") && node.className() == std::string_view("Bone"))
|
||||
node.setName(Misc::StringUtils::underscoresToSpaces(node.getName()));
|
||||
|
||||
if (!mSceneMgr->getSoftParticles())
|
||||
|
|
Loading…
Reference in a new issue