String residency fixes

This commit is contained in:
Jack Andersen 2016-03-03 18:29:28 -10:00
parent 1884f89f53
commit f9a067b9e7
1 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,8 @@ bool ReadANCSToBlender(HECL::BlenderConnection& conn,
if (!conn.createBlend(cmdlPath, HECL::BlenderConnection::BlendType::Mesh))
return false;
HECL::SystemStringView bestNameView(pakRouter.getBestEntryName(*cmdlE));
std::string bestName = pakRouter.getBestEntryName(*cmdlE);
HECL::SystemStringView bestNameView(bestName);
fileChanged(bestNameView.sys_str().c_str());
typename ANCSDNA::CSKRType cskr;
@ -76,7 +77,8 @@ bool ReadANCSToBlender(HECL::BlenderConnection& conn,
}
}
HECL::SystemStringView bestNameView(pakRouter.getBestEntryName(entry));
std::string bestName = pakRouter.getBestEntryName(entry);
HECL::SystemStringView bestNameView(bestName);
fileChanged(bestNameView.sys_str().c_str());
/* Establish ANCS blend */