From 1b103c5c69083a106e88cb423bab8ade639c71d6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 5 Mar 2014 12:19:45 -0800 Subject: Another small tweak to whitespace tool clang-format doesn't appear to reindent multi line #define statements correctly - so this hopefully will clean those up. The included whitespace corrections to the code should stay in place when using the updated tool. This includes cleaning up some multi-line comments that were messed up the last time around as well as a few other minor changes. Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'qt-ui/models.cpp') diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 25deca094..01a3c33b3 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -191,7 +191,7 @@ void CylindersModel::passInData(const QModelIndex &index, const QVariant &value) /* Has the string value changed */ #define CHANGED() \ - (vString = value.toString()) != data(index, role).toString() + (vString = value.toString()) != data(index, role).toString() bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, int role) { @@ -934,8 +934,7 @@ bool TreeItem::setData(const QModelIndex &index, const QVariant &value, int role return false; } -QModelIndex TreeModel::index(int row, int column, const QModelIndex &parent) - const +QModelIndex TreeModel::index(int row, int column, const QModelIndex &parent) const { if (!hasIndex(row, column, parent)) return QModelIndex(); -- cgit v1.2.3-70-g09d2