From 8fce4238aac11618c7e22d666e3423f275e979e7 Mon Sep 17 00:00:00 2001 From: Michael Gregorius Date: Sat, 8 Jul 2023 16:42:17 +0200 Subject: [PATCH] Code adjustments after scripted checks Add an include guard and an additional `#pragme once`. Add comments to closing namespace scopes. --- include/BarModelEditor.h | 9 ++++++++- src/gui/widgets/BarModelEditor.cpp | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/include/BarModelEditor.h b/include/BarModelEditor.h index b854cf932..4681a62b1 100644 --- a/include/BarModelEditor.h +++ b/include/BarModelEditor.h @@ -22,6 +22,11 @@ * */ +#pragma once + +#ifndef LMMS_GUI_BAR_MODEL_EDITOR_H +#define LMMS_GUI_BAR_MODEL_EDITOR_H + #include "FloatModelEditorBase.h" @@ -47,4 +52,6 @@ private: QString const m_text; }; -} +} // namespace lmms::gui + +#endif // LMMS_GUI_BAR_MODEL_EDITOR_H diff --git a/src/gui/widgets/BarModelEditor.cpp b/src/gui/widgets/BarModelEditor.cpp index b22e8f33e..32995b22d 100644 --- a/src/gui/widgets/BarModelEditor.cpp +++ b/src/gui/widgets/BarModelEditor.cpp @@ -67,4 +67,4 @@ void BarModelEditor::paintEvent(QPaintEvent *event) painter.drawText(textRect, m_text); } -} +} // namespace lmms::gui