diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 11:50:31 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-01 16:48:06 +0200 |
commit | 358c0a4140406c8c38138a88aa03a4fc0ec6e7ee (patch) | |
tree | 21a0c0397ca9bd8e67136c472d8146bb3a22a204 /tests/ingen_bench.cpp | |
parent | b453818f17a84c01d679088e5a377e244a231981 (diff) | |
download | ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.tar.gz ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.tar.bz2 ingen-358c0a4140406c8c38138a88aa03a4fc0ec6e7ee.zip |
Use modern casts
Diffstat (limited to 'tests/ingen_bench.cpp')
-rw-r--r-- | tests/ingen_bench.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/ingen_bench.cpp b/tests/ingen_bench.cpp index 0a042f94..2741e5d6 100644 --- a/tests/ingen_bench.cpp +++ b/tests/ingen_bench.cpp @@ -82,11 +82,13 @@ 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(static_cast<const char*>(load.get_body())); + + const std::string out_file = static_cast<const char*>(out.get_body()); if (start_graph.empty()) { cerr << "error: initial graph '" - << ((const char*)load.get_body()) + << static_cast<const char*>(load.get_body()) << "' does not exist" << endl; return EXIT_FAILURE; } |