From aa2999041d405215d5a7e8c494e276ebbfc089fc Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 14 Jun 2015 05:43:37 +0200 Subject: more minor cleanup --- smartpensyncer.cc | 6 ------ stfreader.cc | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/smartpensyncer.cc b/smartpensyncer.cc index 93331ef..7119812 100644 --- a/smartpensyncer.cc +++ b/smartpensyncer.cc @@ -10,12 +10,6 @@ #define BUFFER_SIZE 16 * 1024 namespace { -static QString cleanFilename(QString s) -{ - static const QRegExp re("[^0-9A-Za-z-_]+"); - return s.replace(re, "_"); -} - static QDateTime getTimestampFileDate(const QString &path) { QFileInfo info(path); diff --git a/stfreader.cc b/stfreader.cc index fc62603..9a09290 100644 --- a/stfreader.cc +++ b/stfreader.cc @@ -50,7 +50,7 @@ bool StfReader::parseV1(BitReader& br) break; default: qWarning("Unknown header 0x%x", header); - break; + return false; } /* Start of a stroke. */ -- cgit v1.2.3