Skip to content

Commit be0597f

Browse files
authored
Prevent the creation of temporary objects that will be discarded.
1 parent ae659ad commit be0597f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indra/newview/llpathfindingnavmesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void LLPathfindingNavMesh::handleNavMeshResult(const LLSD &pContent, U32 pNavMes
139139
ENavMeshRequestStatus status;
140140
if ( pContent.has(NAVMESH_DATA_FIELD) )
141141
{
142-
const LLSD::Binary &value = pContent.get(NAVMESH_DATA_FIELD).asBinary();
142+
LLSD::Binary value = pContent.get(NAVMESH_DATA_FIELD).asBinary();
143143
auto binSize = value.size();
144144
std::string newStr(reinterpret_cast<const char *>(&value[0]), binSize);
145145
std::istringstream streamdecomp( newStr );

0 commit comments

Comments
 (0)