aboutsummaryrefslogtreecommitdiff
path: root/src/ConfigData.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-30 22:01:20 +0100
committerMax Kellermann <max@duempel.org>2013-01-30 22:20:13 +0100
commit3cdd01aa1b889698768f2c53d736873f9f558e3b (patch)
tree971b051fa20120a43e962bbe1c28a41175afc55c /src/ConfigData.hxx
parentd25195447a3a690fa1d508871d4b15ade928b2b0 (diff)
ConfigData: use std::vector for the block_param list
Diffstat (limited to 'src/ConfigData.hxx')
-rw-r--r--src/ConfigData.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx
index 98b74635..6da0e73b 100644
--- a/src/ConfigData.hxx
+++ b/src/ConfigData.hxx
@@ -27,6 +27,7 @@
#ifdef __cplusplus
#include <glib.h>
#include <array>
+#include <vector>
#endif
#include <stdbool.h>
@@ -42,7 +43,7 @@ struct block_param {
* This flag is false when nobody has queried the value of
* this option yet.
*/
- bool used;
+ mutable bool used;
};
#endif
@@ -51,14 +52,15 @@ struct config_param {
char *value;
unsigned int line;
- struct block_param *block_params;
- unsigned num_block_params;
+#ifdef __cplusplus
+ std::vector<block_param> block_params;
/**
* This flag is false when nobody has queried the value of
* this option yet.
*/
bool used;
+#endif
};
#ifdef __cplusplus