mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: make event name an std::string
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
408b31b6ce
commit
b8c7b173c6
20 changed files with 149 additions and 152 deletions
|
|
@ -27,11 +27,12 @@
|
|||
*/
|
||||
static int seac_gaschange(void *param, sqlite3_stmt *sqlstmt)
|
||||
{
|
||||
using namespace std::string_literals;
|
||||
struct parser_state *state = (struct parser_state *)param;
|
||||
|
||||
event_start(state);
|
||||
state->cur_event.time.seconds = sqlite3_column_int(sqlstmt, 1);
|
||||
strcpy(state->cur_event.name, "gaschange");
|
||||
state->cur_event.name = "gaschange"s;
|
||||
state->cur_event.gas.mix.o2.permille = 10 * sqlite3_column_int(sqlstmt, 4);
|
||||
event_end(state);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue