Code cleanup.

This commit is contained in:
Kimmo Pekkola
2009-02-14 10:11:28 +00:00
parent e17bd7c9f5
commit 5d2f960552
80 changed files with 67 additions and 2357 deletions

View File

@ -112,7 +112,7 @@ bool CheckProcess(CPUMeasure* measure, const std::wstring& name)
{
if (measure->includes.empty())
{
for (int i = 0; i < measure->excludes.size(); i++)
for (size_t i = 0; i < measure->excludes.size(); i++)
{
if (wcsicmp(measure->excludes[i].c_str(), name.c_str()) == 0)
{
@ -123,7 +123,7 @@ bool CheckProcess(CPUMeasure* measure, const std::wstring& name)
}
else
{
for (int i = 0; i < measure->includes.size(); i++)
for (size_t i = 0; i < measure->includes.size(); i++)
{
if (wcsicmp(measure->includes[i].c_str(), name.c_str()) == 0)
{
@ -159,7 +159,7 @@ double Update2(UINT id)
if(measure)
{
for (int i = 0; i < g_Processes.size(); i++)
for (size_t i = 0; i < g_Processes.size(); i++)
{
// Check process include/exclude
if (CheckProcess(measure, g_Processes[i].name))
@ -320,7 +320,7 @@ void UpdateProcesses()
values.oldValue = 0;
// Check if we can find the old value
for (int i = 0; i < g_Processes.size(); i++)
for (size_t i = 0; i < g_Processes.size(); i++)
{
if (!g_Processes[i].found && g_Processes[i].name == name)
{

View File

@ -15,24 +15,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
$Header: /home/cvsroot/Rainmeter/Plugins/PluginExample/ExamplePlugin.c,v 1.1.1.1 2005/07/10 18:51:06 rainy Exp $
$Log: ExamplePlugin.c,v $
Revision 1.1.1.1 2005/07/10 18:51:06 rainy
no message
Revision 1.3 2004/06/05 10:49:50 rainy
Added new interface.
Uses config parser.
Revision 1.2 2001/12/23 10:04:51 rainy
Added ID to the interface.
Revision 1.1 2001/10/28 09:05:05 rainy
Inital version
*/
#pragma warning(disable: 4996)

View File

@ -15,14 +15,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
$Header: /home/cvsroot/Rainmeter/Plugins/PluginPing/Ping.cpp,v 1.1.1.1 2005/07/10 18:51:06 rainy Exp $
$Log: Ping.cpp,v $
Revision 1.1.1.1 2005/07/10 18:51:06 rainy
no message
*/
#pragma warning(disable: 4786)
#pragma warning(disable: 4996)

View File

@ -15,27 +15,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
$Header: /home/cvsroot/Rainmeter/Plugins/PluginPower/PowerPlugin.cpp,v 1.1.1.1 2005/07/10 18:51:06 rainy Exp $
$Log: PowerPlugin.cpp,v $
Revision 1.1.1.1 2005/07/10 18:51:06 rainy
no message
Revision 1.4 2004/07/11 17:10:42 rainy
The plugin is cleaned up correctly.
Revision 1.3 2004/06/05 10:56:07 rainy
Added new interface.
Uses config parser.
Revision 1.2 2003/03/22 20:39:42 rainy
The max value for status is now correct.
Revision 1.1 2002/09/07 08:17:11 rainy
Intial version
*/
#pragma warning(disable: 4786)
#pragma warning(disable: 4996)

View File

@ -15,14 +15,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
$Header: /home/cvsroot/Rainmeter/Plugins/PluginQuote/Quote.cpp,v 1.1.1.1 2005/07/10 18:51:06 rainy Exp $
$Log: Quote.cpp,v $
Revision 1.1.1.1 2005/07/10 18:51:06 rainy
no message
*/
#pragma warning(disable: 4786)
#pragma warning(disable: 4996)

View File

@ -16,22 +16,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
$Header: /home/cvsroot/Rainmeter/Plugins/PluginResMon/ResMon.cpp,v 1.1.1.1 2005/07/10 18:51:06 rainy Exp $
$Log: ResMon.cpp,v $
Revision 1.1.1.1 2005/07/10 18:51:06 rainy
no message
Revision 1.2 2004/07/11 17:10:42 rainy
The plugin is cleaned up correctly.
Revision 1.1 2004/06/05 10:56:56 rainy
Added new interfaces for plugin version and author.
Added possibility to measure a single process.
*/
/*
Requires Win2k or later. Sorry to anyone still using 9x or ME.
All my results seem to agree with Task Manager (it gets tedious adding up

View File

@ -15,14 +15,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
$Header: /home/cvsroot/Rainmeter/Plugins/PluginSpeedFan/SpeedFanPlugin.cpp,v 1.1.1.1 2005/07/10 18:51:06 rainy Exp $
$Log: SpeedFanPlugin.cpp,v $
Revision 1.1.1.1 2005/07/10 18:51:06 rainy
no message
*/
#pragma warning(disable: 4786)
#pragma warning(disable: 4996)

View File

@ -16,28 +16,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
$Header: /home/cvsroot/Rainmeter/Plugins/PluginSysInfo/SysInfo.cpp,v 1.1.1.1 2005/07/10 18:51:06 rainy Exp $
$Log: SysInfo.cpp,v $
Revision 1.1.1.1 2005/07/10 18:51:06 rainy
no message
Revision 1.4 2004/07/11 17:10:42 rainy
The plugin is cleaned up correctly.
Revision 1.3 2004/06/05 10:57:05 rainy
Added new interface.
Uses config parser.
Revision 1.2 2002/12/23 14:24:46 rainy
Added secondary dns server return value.
Revision 1.1 2002/07/01 15:36:03 rainy
Intial version
*/
#pragma warning(disable: 4786)
#pragma warning(disable: 4996)

View File

@ -1,23 +1,19 @@
/*
$Header: /home/cvsroot/Rainmeter/Plugins/PluginWebParser/WebParser.cpp,v 1.1.1.1 2005/07/10 18:51:06 rainy Exp $
/*
Copyright (C) 2005 Kimmo Pekkola
$Log: WebParser.cpp,v $
Revision 1.1.1.1 2005/07/10 18:51:06 rainy
no message
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
Revision 1.4 2004/07/11 17:11:04 rainy
Added option to download files.
Revision 1.3 2004/06/05 10:57:13 rainy
Added new interface.
Uses config parser.
Revision 1.2 2003/03/22 20:38:59 rainy
Should work now.
Revision 1.1 2003/03/14 10:19:51 rainy
Initial version
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Note: To compile this you need the PCRE library (http://www.pcre.org/).

View File

@ -15,14 +15,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
$Header: /home/cvsroot/Rainmeter/Plugins/PluginWindowMessage/WindowMessagePlugin.cpp,v 1.1.1.1 2005/07/10 18:51:07 rainy Exp $
$Log: WindowMessagePlugin.cpp,v $
Revision 1.1.1.1 2005/07/10 18:51:07 rainy
no message
*/
#pragma warning(disable: 4786)
#pragma warning(disable: 4996)