summaryrefslogtreecommitdiffstats
path: root/tests/ingen_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ingen_test.cpp')
-rw-r--r--tests/ingen_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp
index 4c00799d..22b5b3dc 100644
--- a/tests/ingen_test.cpp
+++ b/tests/ingen_test.cpp
@@ -86,7 +86,7 @@ main(int argc, char** argv)
}
// Get start graph and commands file options
- const char* load_path = (const char*)load.get_body();
+ const char* load_path = load.ptr<char>();
char* real_start_graph = realpath(load_path, nullptr);
if (!real_start_graph) {
cerr << "error: initial graph '" << load_path << "' does not exist" << endl;
@@ -94,7 +94,7 @@ main(int argc, char** argv)
}
const std::string start_graph = real_start_graph;
- const FilePath cmds_file_path = (const char*)execute.get_body();
+ const FilePath cmds_file_path = execute.ptr<char>();
free(real_start_graph);
// Load modules