mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor tweaks and cosmetics.
This commit is contained in:
@ -66,10 +66,8 @@ std::wstring CGroup::CreateGroup(const std::wstring& str)
|
||||
std::wstring::size_type pos = str.find_first_not_of(L" \t\r\n");
|
||||
if (pos != std::wstring::npos)
|
||||
{
|
||||
std::wstring::size_type lastPos = str.find_last_not_of(L" \t\r\n");
|
||||
|
||||
// Trim white-space
|
||||
strTmp.assign(str, pos, lastPos - pos + 1);
|
||||
strTmp.assign(str, pos, str.find_last_not_of(L" \t\r\n") - pos + 1);
|
||||
|
||||
// Convert to lower
|
||||
std::transform(strTmp.begin(), strTmp.end(), strTmp.begin(), ::towlower);
|
||||
|
Reference in New Issue
Block a user