mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Cosmetics
This commit is contained in:
parent
61cbb81756
commit
ce847ac12e
@ -295,9 +295,8 @@ bool ConfigParser::GetSectionVariable(std::wstring& strVariable, std::wstring& s
|
|||||||
{
|
{
|
||||||
if (valueType == ValueType::EscapeRegExp)
|
if (valueType == ValueType::EscapeRegExp)
|
||||||
{
|
{
|
||||||
std::wstring str = measure->GetStringValue();
|
strValue = measure->GetStringValue();
|
||||||
EscapeRegExp(str);
|
EscapeRegExp(strValue);
|
||||||
strValue.assign(str);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -311,8 +310,9 @@ bool ConfigParser::GetSectionVariable(std::wstring& strVariable, std::wstring& s
|
|||||||
|
|
||||||
if (*selectorSz == L'%') // Percentual
|
if (*selectorSz == L'%') // Percentual
|
||||||
{
|
{
|
||||||
if (valueType == ValueType::Max || valueType == ValueType::Min) // '%' cannot be used with MAX/MIN value
|
if (valueType == ValueType::Max || valueType == ValueType::Min)
|
||||||
{
|
{
|
||||||
|
// '%' cannot be used with Max/Min values.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,8 +322,9 @@ bool ConfigParser::GetSectionVariable(std::wstring& strVariable, std::wstring& s
|
|||||||
{
|
{
|
||||||
errno = 0;
|
errno = 0;
|
||||||
scale = _wtoi(selectorSz + 1);
|
scale = _wtoi(selectorSz + 1);
|
||||||
if (errno == EINVAL || scale == 0) // Invalid scale value
|
if (errno == EINVAL || scale == 0)
|
||||||
{
|
{
|
||||||
|
// Invalid scale value.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user