1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-19 04:02:09 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2016-11-02 17:33:06 +01:00
parent 8591d3f34c
commit 324ac2e0f4
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
#include "tcxparser.h" #include "tcxparser.h"
void TCXParser::warning(const char *text) void TCXParser::warning(const char *text) const
{ {
QFile *file = static_cast<QFile *>(_reader.device()); const QFile *file = static_cast<QFile *>(_reader.device());
fprintf(stderr, "%s:%lld: %s\n", qPrintable(file->fileName()), fprintf(stderr, "%s:%lld: %s\n", qPrintable(file->fileName()),
_reader.lineNumber(), text); _reader.lineNumber(), text);
} }

View File

@ -31,7 +31,7 @@ private:
qreal number(); qreal number();
QDateTime time(); QDateTime time();
void warning(const char *text); void warning(const char *text) const;
QXmlStreamReader _reader; QXmlStreamReader _reader;
}; };