From 9ed5cf16a4a0f982f0fae170740ee2886f634a14 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 23 Feb 2019 18:31:02 +0100 Subject: 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 --- profile-widget/diveprofileitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'profile-widget') 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); -- cgit v1.2.3-70-g09d2