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