diff --git a/Tools/WinMLRunner/src/EventTraceHelper.cpp b/Tools/WinMLRunner/src/EventTraceHelper.cpp index d0560f38..93272c0c 100644 --- a/Tools/WinMLRunner/src/EventTraceHelper.cpp +++ b/Tools/WinMLRunner/src/EventTraceHelper.cpp @@ -202,7 +202,7 @@ static DWORD GetEventInformation(PEVENT_RECORD pEvent, PTRACE_EVENT_INFO& pInfo) return status; } -static std::wstring& TrimOperatorName(std::wstring& s) +static std::wstring TrimOperatorName(std::wstring& s) { wstring substring = L"_kernel_time"; int offset = (int)s.find(substring);