diff options
author | David Robillard <d@drobilla.net> | 2023-02-03 14:42:49 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-02-03 14:42:49 -0500 |
commit | c4f719b1831e35663163e09a0d692c909c09d95f (patch) | |
tree | 678034df92cd373e8719b9b99506ea1e6a38fcff /test/path_test.cpp | |
parent | 3d685246480d5bd813f5d5f15a9352a9f4a1600c (diff) | |
download | raul-c4f719b1831e35663163e09a0d692c909c09d95f.tar.gz raul-c4f719b1831e35663163e09a0d692c909c09d95f.tar.bz2 raul-c4f719b1831e35663163e09a0d692c909c09d95f.zip |
Suppress/fix new warnings in clang-tidy 15
Diffstat (limited to 'test/path_test.cpp')
-rw-r--r-- | test/path_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/path_test.cpp b/test/path_test.cpp index 573448c..9992cbb 100644 --- a/test/path_test.cpp +++ b/test/path_test.cpp @@ -67,7 +67,7 @@ main() bool valid = true; try { - Path path("/ends/in/slash/"); + const Path path{"/ends/in/slash/"}; } catch (const Path::BadPath& e) { std::cerr << "Caught exception: " << e.what() << std::endl; valid = false; @@ -76,7 +76,7 @@ main() valid = true; try { - Path path(std::string("/has//double/slash")); + const Path path{std::string("/has//double/slash")}; } catch (const Path::BadPath& e) { std::cerr << "Caught exception: " << e.what() << std::endl; valid = false; |