From dc6747841ece7250ccdd964b19ac30f8c66889be Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Sep 2024 19:35:32 -0400 Subject: Factor frontend command-line arguments into a struct --- src/jalv_qt.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/jalv_qt.cpp') 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; } -- cgit v1.2.1