Resolve most compiler warnings

This commit is contained in:
Wilhelm Schuermann
2015-03-29 22:05:38 +02:00
parent b8105812fc
commit 7a64c19641
8 changed files with 34 additions and 34 deletions

View File

@@ -304,7 +304,7 @@ bool Duration::parse (const std::string& input, std::string::size_type& start)
// Static and so preserved between calls.
static std::vector <std::string> units;
if (units.size () == 0)
for (int i = 0; i < NUM_DURATIONS; i++)
for (unsigned int i = 0; i < NUM_DURATIONS; i++)
units.push_back (durations[i].unit);
std::string number;
@@ -319,7 +319,7 @@ bool Duration::parse (const std::string& input, std::string::size_type& start)
// Linear lookup - should be logarithmic.
double seconds = 1;
for (int i = 0; i < NUM_DURATIONS; i++)
for (unsigned int i = 0; i < NUM_DURATIONS; i++)
{
if (durations[i].unit == unit &&
durations[i].standalone == true)
@@ -344,7 +344,7 @@ bool Duration::parse (const std::string& input, std::string::size_type& start)
// Linear lookup - should be logarithmic.
double seconds = 1;
for (int i = 0; i < NUM_DURATIONS; i++)
for (unsigned int i = 0; i < NUM_DURATIONS; i++)
{
if (durations[i].unit == unit)
{