aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-14 05:43:37 +0200
committerJavier <dev.git@javispedro.com>2015-06-14 05:43:37 +0200
commitaa2999041d405215d5a7e8c494e276ebbfc089fc (patch)
tree22bfe38af679296c8b97d97d470657d412fec8ee
parentc36852c600d0a3173ba441160a10c63a3627825a (diff)
downloadscribiu-aa2999041d405215d5a7e8c494e276ebbfc089fc.tar.gz
scribiu-aa2999041d405215d5a7e8c494e276ebbfc089fc.zip
more minor cleanup
-rw-r--r--smartpensyncer.cc6
-rw-r--r--stfreader.cc2
2 files changed, 1 insertions, 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. */