Fix compiler warnings

All are harmless but for the sake of clarity have
fixed them all bar a couple;

- Lucene grumbles about signed/unsigned conversion which
  is/isn't valid depending upon the version of CLucene you
  compile with. Either way it is harmless.

- QxtScheduleView has a bunch of issues, but since it is a
  third party widget its better to leave it unchanged.
This commit is contained in:
Mark Liversedge
2013-02-06 15:54:32 +00:00
parent 0022140687
commit f527d8e5c2
16 changed files with 36 additions and 81 deletions

View File

@@ -70,6 +70,10 @@ RideFile *TxtFileReader::openRideFile(QFile &file, QStringList &errors, QList<Ri
bool metric = true; // are the values in metric or imperial?
QDateTime startTime; // parsed from filename
// just to quieten the compiler, since we don't seem to
// use the metric bool anywhere in the code at present
if (metric) { }
// Lets make sure we can open the file
if (!file.open(QFile::ReadOnly)) {
errors << ("Could not open ride file: \"" + file.fileName() + "\"");