From f8ff4a2c47387cc4c7c7bd2d077c715dad79825d Mon Sep 17 00:00:00 2001 From: tst-basilhuffman Date: Mon, 5 Apr 2021 14:52:34 +0000 Subject: [PATCH] rolled back refactor --- earth_enterprise/src/fusion/gst/gstAssetGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earth_enterprise/src/fusion/gst/gstAssetGroup.cpp b/earth_enterprise/src/fusion/gst/gstAssetGroup.cpp index d24cef3c1..0dbb7ca79 100644 --- a/earth_enterprise/src/fusion/gst/gstAssetGroup.cpp +++ b/earth_enterprise/src/fusion/gst/gstAssetGroup.cpp @@ -39,7 +39,7 @@ const char* shortAssetName(const char* n) { auto pos = saname.rfind(elem); if (pos != std::string::npos) { - saname = saname.substr(0,pos); + saname.erase(saname.begin() + pos, saname.end()); break; } }