Cosmetics

This commit is contained in:
Birunthan Mohanathas 2012-04-06 15:29:41 +03:00
parent c663bde9cc
commit 1e4513e9c6
3 changed files with 9 additions and 39 deletions

View File

@ -108,8 +108,6 @@
<Optimization>Disabled</Optimization> <Optimization>Disabled</Optimization>
</ClCompile> </ClCompile>
<Link> <Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<NoEntryPoint>true</NoEntryPoint> <NoEntryPoint>true</NoEntryPoint>
</Link> </Link>
<ResourceCompile> <ResourceCompile>
@ -139,8 +137,6 @@
<Optimization>Disabled</Optimization> <Optimization>Disabled</Optimization>
</ClCompile> </ClCompile>
<Link> <Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<NoEntryPoint>true</NoEntryPoint> <NoEntryPoint>true</NoEntryPoint>
</Link> </Link>
<ResourceCompile> <ResourceCompile>

View File

@ -1,3 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>

View File

@ -122,13 +122,10 @@ void CConfigParser::ReadVariables()
} }
} }
/** /*
** Sets a new value for the variable. The DynamicVariables must be set to 1 in the ** Sets a new value for the variable. The DynamicVariables must be set to 1 in the
** meter/measure for the changes to be applied. ** meter/measure for the changes to be applied.
** **
** \param variables
** \param strVariable
** \param strValue
*/ */
void CConfigParser::SetVariable(std::unordered_map<std::wstring, std::wstring>& variables, const std::wstring& strVariable, const std::wstring& strValue) void CConfigParser::SetVariable(std::unordered_map<std::wstring, std::wstring>& variables, const std::wstring& strVariable, const std::wstring& strValue)
{ {
@ -147,12 +144,9 @@ void CConfigParser::SetVariable(std::unordered_map<std::wstring, std::wstring>&
variables[strTmp] = strValue; variables[strTmp] = strValue;
} }
/** /*
** Gets a value for the variable. ** Gets a value for the variable. Returns true if variable found.
** **
** \param strVariable
** \param strValue
** \return true if variable is found
*/ */
bool CConfigParser::GetVariable(const std::wstring& strVariable, std::wstring& strValue) bool CConfigParser::GetVariable(const std::wstring& strVariable, std::wstring& strValue)
{ {
@ -423,10 +417,9 @@ void CConfigParser::SetAutoSelectedMonitorVariables(CMeterWindow* meterWindow)
} }
} }
/** /*
** Replaces environment and internal variables in the given string. ** Replaces environment and internal variables in the given string.
** **
** \param result The string where the variables are returned. The string is modified.
*/ */
bool CConfigParser::ReplaceVariables(std::wstring& result) bool CConfigParser::ReplaceVariables(std::wstring& result)
{ {
@ -492,10 +485,9 @@ bool CConfigParser::ReplaceVariables(std::wstring& result)
return replaced; return replaced;
} }
/** /*
** Replaces measures in the given string. ** Replaces measures in the given string.
** **
** \param result The string where the measure values are returned. The string is modified.
*/ */
bool CConfigParser::ReplaceMeasures(std::wstring& result) bool CConfigParser::ReplaceMeasures(std::wstring& result)
{ {
@ -1091,11 +1083,9 @@ RECT CConfigParser::ParseRECT(LPCTSTR string)
return r; return r;
} }
//============================================================================== /*
/**
** Reads the given ini file and fills the m_Values and m_Keys maps. ** Reads the given ini file and fills the m_Values and m_Keys maps.
** **
** \param iniFile The ini file to be read.
*/ */
void CConfigParser::ReadIniFile(const std::wstring& iniFile, LPCTSTR config, int depth) void CConfigParser::ReadIniFile(const std::wstring& iniFile, LPCTSTR config, int depth)
{ {
@ -1295,13 +1285,9 @@ void CConfigParser::ReadIniFile(const std::wstring& iniFile, LPCTSTR config, int
if (temporary) CSystem::RemoveFile(iniRead); if (temporary) CSystem::RemoveFile(iniRead);
} }
//============================================================================== /*
/**
** Sets the value for the key under the given section. ** Sets the value for the key under the given section.
** **
** \param strSection The name of the section.
** \param strKey The name of the key.
** \param strValue The value for the key.
*/ */
void CConfigParser::SetValue(const std::wstring& strSection, const std::wstring& strKey, const std::wstring& strValue) void CConfigParser::SetValue(const std::wstring& strSection, const std::wstring& strKey, const std::wstring& strValue)
{ {
@ -1316,13 +1302,9 @@ void CConfigParser::SetValue(const std::wstring& strSection, const std::wstring&
m_Values[StrToLowerC(strTmp)] = strValue; m_Values[StrToLowerC(strTmp)] = strValue;
} }
//============================================================================== /*
/**
** Deletes the value for the key under the given section. ** Deletes the value for the key under the given section.
** **
** \param strSection The name of the section.
** \param strKey The name of the key.
** \param strValue The value for the key.
*/ */
void CConfigParser::DeleteValue(const std::wstring& strSection, const std::wstring& strKey) void CConfigParser::DeleteValue(const std::wstring& strSection, const std::wstring& strKey)
{ {
@ -1339,14 +1321,9 @@ void CConfigParser::DeleteValue(const std::wstring& strSection, const std::wstri
} }
} }
//============================================================================== /*
/**
** Returns the value for the key under the given section. ** Returns the value for the key under the given section.
** **
** \param strSection The name of the section.
** \param strKey The name of the key.
** \param strDefault The default value for the key.
** \return The value for the key.
*/ */
const std::wstring& CConfigParser::GetValue(const std::wstring& strSection, const std::wstring& strKey, const std::wstring& strDefault) const std::wstring& CConfigParser::GetValue(const std::wstring& strSection, const std::wstring& strKey, const std::wstring& strDefault)
{ {