diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-17 20:15:23 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-23 18:17:02 -0700 |
commit | d508a16aca91b521719d929cd59db381c44cd7ad (patch) | |
tree | af076eb66fcd4002a01a29a46f8b80d4d4129994 /desktop-widgets/divelogimportdialog.h | |
parent | b9b51ffd4ebd14e085bef69ee0daf6a1927cc960 (diff) | |
download | subsurface-d508a16aca91b521719d929cd59db381c44cd7ad.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelogimportdialog.h')
-rw-r--r-- | desktop-widgets/divelogimportdialog.h | 5 |
1 files changed, 3 insertions, 2 deletions
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; |