From d508a16aca91b521719d929cd59db381c44cd7ad Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 17 Oct 2020 20:15:23 +0200 Subject: parser: replace params[] code by new xml_params struct This fixes a load of memory holes, and makes the code (hopefully) more readable. Signed-off-by: Berthold Stoeger --- desktop-widgets/divelogimportdialog.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/divelogimportdialog.h') diff --git a/desktop-widgets/divelogimportdialog.h b/desktop-widgets/divelogimportdialog.h index d64cbc656..9c75dc0f0 100644 --- a/desktop-widgets/divelogimportdialog.h +++ b/desktop-widgets/divelogimportdialog.h @@ -13,6 +13,7 @@ #include "core/dive.h" #include "core/divelist.h" +struct xml_params; namespace Ui { class DiveLogImportDialog; } @@ -87,8 +88,8 @@ slots: void loadFileContentsSeperatorSelected(int value); void loadFileContentsKnownTypesSelected(int value); void loadFileContents(int value, enum whatChanged triggeredBy); - int setup_csv_params(QStringList r, char **params, int pnr); - int parseTxtHeader(QString fileName, char **params, int pnr); + void setup_csv_params(QStringList r, xml_params ¶ms); + void parseTxtHeader(QString fileName, xml_params ¶ms); private: bool selector; -- cgit v1.2.3-70-g09d2