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/symbol_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/symbol_test.cpp')
-rw-r--r-- | test/symbol_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/symbol_test.cpp b/test/symbol_test.cpp index e9f64da..ee78cea 100644 --- a/test/symbol_test.cpp +++ b/test/symbol_test.cpp @@ -39,7 +39,7 @@ main() bool valid = true; try { - Symbol symbol("0startswithdigit"); + const Symbol symbol{"0startswithdigit"}; } catch (const Symbol::BadSymbol& e) { std::cerr << "Caught exception: " << e.what() << std::endl; valid = false; @@ -48,7 +48,7 @@ main() valid = true; try { - Symbol symbol(std::string("invalid/symbol")); + const Symbol symbol{std::string("invalid/symbol")}; } catch (const Symbol::BadSymbol& e) { std::cerr << "Caught exception: " << e.what() << std::endl; valid = false; |