summaryrefslogtreecommitdiffstats
path: root/test/path_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-02-03 14:42:49 -0500
committerDavid Robillard <d@drobilla.net>2023-02-03 14:42:49 -0500
commitc4f719b1831e35663163e09a0d692c909c09d95f (patch)
tree678034df92cd373e8719b9b99506ea1e6a38fcff /test/path_test.cpp
parent3d685246480d5bd813f5d5f15a9352a9f4a1600c (diff)
downloadraul-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.cpp4
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;