summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelogimportdialog.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-17 20:15:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-23 18:17:02 -0700
commitd508a16aca91b521719d929cd59db381c44cd7ad (patch)
treeaf076eb66fcd4002a01a29a46f8b80d4d4129994 /desktop-widgets/divelogimportdialog.h
parentb9b51ffd4ebd14e085bef69ee0daf6a1927cc960 (diff)
downloadsubsurface-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.h5
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 &params);
+ void parseTxtHeader(QString fileName, xml_params &params);
private:
bool selector;