diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-02-23 18:31:02 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | 9ed5cf16a4a0f982f0fae170740ee2886f634a14 (patch) | |
tree | 4b2852b5ea4f915346fe7afcbbdd50e9d679f60d /profile-widget/diveprofileitem.cpp | |
parent | 73a230b6e652f4bba1bf08cb21fec112a968ff0d (diff) | |
download | subsurface-9ed5cf16a4a0f982f0fae170740ee2886f634a14.tar.gz |
Coding style: remove Java-style function definition
Remove a few cases of
void fun() {
...
}
While touching these functions, fix a few other whitespace
coding style violations.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/diveprofileitem.cpp')
-rw-r--r-- | profile-widget/diveprofileitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index c31944f87..d47ceff02 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -638,7 +638,8 @@ void DiveMeanDepthItem::paint(QPainter *painter, const QStyleOptionGraphicsItem* connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::show_average_depthChanged, this, &DiveAmbPressureItem::setVisible); } -void DiveMeanDepthItem::createTextItem() { +void DiveMeanDepthItem::createTextItem() +{ plot_data *entry = dataModel->data().entry; int sec = entry[dataModel->rowCount()-1].sec; qDeleteAll(texts); |