Fixed some syntax errors and clang compiling warnings

GCC/VS2013/Clang is tested
This commit is contained in:
cnjinhao
2015-01-03 22:04:06 +08:00
parent 1f559964f9
commit 0a5c85d21b
14 changed files with 150 additions and 161 deletions

View File

@@ -49,13 +49,13 @@ namespace nana
void trigger::week_name(unsigned index, const nana::string& str)
{
if(0 <= index && index < 7)
if(index < 7)
this->weekstr_[index] = str;
}
void trigger::month_name(unsigned index, const nana::string& str)
{
if(0 <= index && index < 12)
if(index < 12)
this->monthstr_[index] = str;
}