CommandHandler: Cosmetics

This commit is contained in:
Brian Ferguson 2013-06-29 11:03:24 -06:00
parent eb74f359ba
commit 05964e9f7f

View File

@ -158,10 +158,10 @@ void DoBang(const BangInfo& bangInfo, std::vector<std::wstring>& args, MeterWind
const std::wstring& folderPath = args[bangInfo.argCount]; const std::wstring& folderPath = args[bangInfo.argCount];
if (!folderPath.empty() && (folderPath.length() != 1 || folderPath[0] != L'*')) if (!folderPath.empty() && (folderPath.length() != 1 || folderPath[0] != L'*'))
{ {
MeterWindow* skin = GetRainmeter().GetMeterWindow(folderPath); MeterWindow* meterWindow = GetRainmeter().GetMeterWindow(folderPath);
if (skin) if (meterWindow)
{ {
skin->DoBang(bangInfo.bang, args); meterWindow->DoBang(bangInfo.bang, args);
} }
else else
{ {
@ -613,10 +613,10 @@ void CommandHandler::DoToggleSkinBang(std::vector<std::wstring>& args, MeterWind
{ {
if (args.size() >= 2) if (args.size() >= 2)
{ {
MeterWindow* skin = GetRainmeter().GetMeterWindow(args[0]); MeterWindow* meterWindow = GetRainmeter().GetMeterWindow(args[0]);
if (skin) if (meterWindow)
{ {
GetRainmeter().DeactivateSkin(skin, -1); GetRainmeter().DeactivateSkin(meterWindow, -1);
return; return;
} }