From 8c19e157e148efb59d6ea2f815783755b6075c7e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Dec 2017 00:45:27 +0100 Subject: Rename Atom::get_body to Atom::body and use Atom::ptr consistently --- tests/ingen_bench.cpp | 6 +++--- tests/ingen_test.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') 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()); + const std::string out_file = out.ptr(); if (start_graph.empty()) { cerr << "error: initial graph '" - << ((const char*)load.get_body()) + << load.ptr() << "' 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* 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(); free(real_start_graph); // Load modules -- cgit v1.2.1