mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor tweaks.
This commit is contained in:
@ -298,7 +298,7 @@ std::wstring CMeasure::ExtractWord(std::wstring& buffer)
|
||||
|
||||
if (end != std::wstring::npos)
|
||||
{
|
||||
ret = buffer.substr(1, end - 1);
|
||||
ret.assign(buffer, 1, end - 1);
|
||||
++end;
|
||||
}
|
||||
else
|
||||
@ -319,7 +319,7 @@ std::wstring CMeasure::ExtractWord(std::wstring& buffer)
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = buffer.substr(0, ++end); // The separator is also returned!
|
||||
ret.assign(buffer, 0, ++end); // The separator is also returned!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user