From 324ac2e0f4d193b3b803e4690e5234725fb4661a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 2 Nov 2016 17:33:06 +0100 Subject: [PATCH] Code cleanup --- src/tcxparser.cpp | 4 ++-- src/tcxparser.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tcxparser.cpp b/src/tcxparser.cpp index f15734fc..f8ae8422 100644 --- a/src/tcxparser.cpp +++ b/src/tcxparser.cpp @@ -1,9 +1,9 @@ #include "tcxparser.h" -void TCXParser::warning(const char *text) +void TCXParser::warning(const char *text) const { - QFile *file = static_cast(_reader.device()); + const QFile *file = static_cast(_reader.device()); fprintf(stderr, "%s:%lld: %s\n", qPrintable(file->fileName()), _reader.lineNumber(), text); } diff --git a/src/tcxparser.h b/src/tcxparser.h index b11cb2c9..fa8cbb56 100644 --- a/src/tcxparser.h +++ b/src/tcxparser.h @@ -31,7 +31,7 @@ private: qreal number(); QDateTime time(); - void warning(const char *text); + void warning(const char *text) const; QXmlStreamReader _reader; };