Browse Source

LogCompressor: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 4 years ago committed by Don Gagne
parent
commit
01635f1d6b
  1. 4
      src/LogCompressor.cc
  2. 4
      src/LogCompressor.h

4
src/LogCompressor.cc

@ -201,12 +201,12 @@ void LogCompressor::startCompression(bool holeFilling)
start(); start();
} }
bool LogCompressor::isFinished() bool LogCompressor::isFinished() const
{ {
return !running; return !running;
} }
int LogCompressor::getCurrentLine() int LogCompressor::getCurrentLine() const
{ {
return currentDataLine; return currentDataLine;
} }

4
src/LogCompressor.h

@ -26,8 +26,8 @@ public:
LogCompressor(QString logFileName, QString outFileName="", QString delimiter="\t"); LogCompressor(QString logFileName, QString outFileName="", QString delimiter="\t");
/** @brief Start the compression of a raw, line-based logfile into a CSV file */ /** @brief Start the compression of a raw, line-based logfile into a CSV file */
void startCompression(bool holeFilling=false); void startCompression(bool holeFilling=false);
bool isFinished(); bool isFinished() const;
int getCurrentLine(); int getCurrentLine() const;
protected: protected:
void run(); ///< This function actually performs the compression. It's an overloaded function from QThread void run(); ///< This function actually performs the compression. It's an overloaded function from QThread

Loading…
Cancel
Save