diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-22 11:40:22 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-22 11:40:22 -0700 |
commit | 5ba573240f5caf5d7548245ef1066b6f3cbbf951 (patch) | |
tree | 563e12a4d8063de14877ee66180bea8753501161 /divecomputer.cpp | |
parent | c7e7cebed6e40e0828aa36c3ed3f978c15ea8f5e (diff) | |
download | subsurface-5ba573240f5caf5d7548245ef1066b6f3cbbf951.tar.gz |
Gratuitous whitespace changes
I keep trying to get to consistenct.
Completely hopeless.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divecomputer.cpp')
-rw-r--r-- | divecomputer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/divecomputer.cpp b/divecomputer.cpp index c714137a2..f427bd42c 100644 --- a/divecomputer.cpp +++ b/divecomputer.cpp @@ -41,7 +41,7 @@ bool DiveComputerNode::changesValues(const DiveComputerNode &b) const (nickName != b.nickName); } -const DiveComputerNode *DiveComputerList::getExact(const QString& m, uint32_t d) +const DiveComputerNode *DiveComputerList::getExact(const QString &m, uint32_t d) { for (QMap<QString, DiveComputerNode>::iterator it = dcMap.find(m); it != dcMap.end() && it.key() == m; ++it) if (it->deviceId == d) @@ -49,7 +49,7 @@ const DiveComputerNode *DiveComputerList::getExact(const QString& m, uint32_t d) return NULL; } -const DiveComputerNode *DiveComputerList::get(const QString& m) +const DiveComputerNode *DiveComputerList::get(const QString &m) { QMap<QString, DiveComputerNode>::iterator it = dcMap.find(m); if (it != dcMap.end()) @@ -57,7 +57,7 @@ const DiveComputerNode *DiveComputerList::get(const QString& m) return NULL; } -void DiveComputerList::addDC(const QString& m, uint32_t d, const QString& n, const QString& s,const QString& f) +void DiveComputerList::addDC(const QString &m, uint32_t d, const QString &n, const QString &s, const QString &f) { if (m.isEmpty() || d == 0) return; @@ -79,7 +79,7 @@ void DiveComputerList::addDC(const QString& m, uint32_t d, const QString& n, con dcMap.insert(m, newNode); } -void DiveComputerList::rmDC(const QString& m, uint32_t d) +void DiveComputerList::rmDC(const QString &m, uint32_t d) { const DiveComputerNode *existNode = this->getExact(m, d); dcMap.remove(m, *existNode); @@ -96,8 +96,8 @@ extern "C" bool compareDC(const DiveComputerNode &a, const DiveComputerNode &b) return a.deviceId < b.deviceId; } -extern "C" void call_for_each_dc(void *f, void (*callback)(void *, const char *, uint32_t, - const char *, const char *, const char *)) +extern "C" void call_for_each_dc (void *f, void (*callback)(void *, const char *, uint32_t, + const char *, const char *, const char *)) { QList<DiveComputerNode> values = dcList.dcMap.values(); qSort(values.begin(), values.end(), compareDC); @@ -164,7 +164,7 @@ extern "C" void set_dc_nickname(struct dive *dive) struct divecomputer *dc; - for_each_dc(dive, dc) { + for_each_dc (dive, dc) { if (dc->model && *dc->model && dc->deviceid && !dcList.getExact(dc->model, dc->deviceid)) { // we don't have this one, yet |