mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b9b51ffd4e
commit
d508a16aca
10 changed files with 301 additions and 498 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue