diff options
author | David Robillard <d@drobilla.net> | 2017-12-18 00:45:27 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-12 18:20:04 +0100 |
commit | 8c19e157e148efb59d6ea2f815783755b6075c7e (patch) | |
tree | 094a95326138dd3a46cbd52b84981e36faebc64a /tests | |
parent | 967a8b9d6690a5ece385d07af04c322d645de23f (diff) | |
download | ingen-8c19e157e148efb59d6ea2f815783755b6075c7e.tar.gz ingen-8c19e157e148efb59d6ea2f815783755b6075c7e.tar.bz2 ingen-8c19e157e148efb59d6ea2f815783755b6075c7e.zip |
Rename Atom::get_body to Atom::body and use Atom::ptr consistently
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ingen_bench.cpp | 6 | ||||
-rw-r--r-- | tests/ingen_test.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/ingen_bench.cpp b/tests/ingen_bench.cpp index 2ac1f5f1..a21601f1 100644 --- a/tests/ingen_bench.cpp +++ b/tests/ingen_bench.cpp @@ -82,11 +82,11 @@ main(int argc, char** argv) } // Get start graph and output file options - const std::string start_graph = real_path((const char*)load.get_body()); - const std::string out_file = (const char*)out.get_body(); + const std::string start_graph = real_path(load.ptr<char>()); + const std::string out_file = out.ptr<char>(); if (start_graph.empty()) { cerr << "error: initial graph '" - << ((const char*)load.get_body()) + << load.ptr<char>() << "' does not exist" << endl; return EXIT_FAILURE; } 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 |