diff options
author | David Robillard <d@drobilla.net> | 2024-09-29 19:35:32 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-12 14:07:10 -0400 |
commit | dc6747841ece7250ccdd964b19ac30f8c66889be (patch) | |
tree | 4306c61829dab11a40ed120feeef89da7fdd6a9e /src/jalv_qt.cpp | |
parent | 6451316012d42ad5efad6fe41ec555d772f5c25d (diff) | |
download | jalv-dc6747841ece7250ccdd964b19ac30f8c66889be.tar.gz jalv-dc6747841ece7250ccdd964b19ac30f8c66889be.tar.bz2 jalv-dc6747841ece7250ccdd964b19ac30f8c66889be.zip |
Factor frontend command-line arguments into a struct
Diffstat (limited to 'src/jalv_qt.cpp')
-rw-r--r-- | src/jalv_qt.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp index acfbcdb..e849636 100644 --- a/src/jalv_qt.cpp +++ b/src/jalv_qt.cpp @@ -277,11 +277,12 @@ FlowLayout::smartSpacing(QStyle::PixelMetric pm) const extern "C" { int -jalv_frontend_init(int* argc, char*** argv, JalvOptions*) +jalv_frontend_init(JalvFrontendArgs* const args, JalvOptions*) { - app = new QApplication(*argc, *argv, true); + app = new QApplication(*args->argc, *args->argv, true); app->setStyleSheet("QGroupBox::title { subcontrol-position: top center }"); - + --*args->argc; + ++*args->argv; return 0; } |