Code cleanup & cosmetics.

This commit is contained in:
spx
2010-10-31 20:13:32 +00:00
parent b490555842
commit 1668de5a3b
11 changed files with 61 additions and 61 deletions

View File

@ -134,7 +134,7 @@ void CMeterString::Initialize()
{
std::wstring error = L"Error: Couldn't load font family: ";
error += m_FontFace;
DebugLog(error.c_str());
LSLog(LOG_DEBUG, APPNAME, error.c_str());
delete m_FontFamily;
m_FontFamily = NULL;
@ -755,23 +755,23 @@ void CMeterString::EnumerateInstalledFontFamilies()
}
fonts += L", ";
}
LSLog(LOG_DEBUG, L"Rainmeter", fonts.c_str());
LSLog(LOG_DEBUG, APPNAME, fonts.c_str());
}
else
{
LSLog(LOG_DEBUG, L"Rainmeter", L"Failed to enumerate installed font families: GetFamilies() failed.");
LSLog(LOG_DEBUG, APPNAME, L"Failed to enumerate installed font families: GetFamilies() failed.");
}
delete [] fontFamilies;
}
else
{
LSLog(LOG_DEBUG, L"Rainmeter", L"There are no installed font families!");
LSLog(LOG_DEBUG, APPNAME, L"There are no installed font families!");
}
}
else
{
LSLog(LOG_DEBUG, L"Rainmeter", L"Failed to enumerate installed font families: InstalledFontCollection() failed.");
LSLog(LOG_DEBUG, APPNAME, L"Failed to enumerate installed font families: InstalledFontCollection() failed.");
}
}