diff --git a/mainwindow.cpp b/mainwindow.cpp index d8df364..4bb901e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -16,18 +16,18 @@ #include namespace { -constexpr int samplerates[] = { 44100, 48000, 96000, 192000 }; + constexpr int samplerates[] = { 44100, 48000, 96000, 192000 }; -constexpr int refreshrates[] = { 1, 15, 30, 50, 60 }; + constexpr int refreshrates[] = { 1, 15, 30, 50, 60 }; -constexpr int zoomlevels[] = { 50, 75, 100, 200, 400, 800 }; + constexpr int zoomlevels[] = { 50, 75, 100, 200, 400, 800 }; -template -void setActionsEnabled(const T &actions, bool enabled) -{ - for(auto action : actions) - action->setEnabled(enabled); -} + template + void setActionsEnabled(const T &actions, bool enabled) + { + for(auto action : actions) + action->setEnabled(enabled); + } } MainWindow::MainWindow(QWidget *parent) : diff --git a/osciwidget.cpp b/osciwidget.cpp index e6f3f21..9aa29f6 100644 --- a/osciwidget.cpp +++ b/osciwidget.cpp @@ -9,8 +9,10 @@ // system includes #include -qint32 framesForDuration(qint64 duration){ - return qint32(44100 * duration / 1000000LL); +namespace { + qint32 framesForDuration(qint64 duration){ + return qint32(44100 * duration / 1000000LL); + } }