From 38985664a60f2caf1576c32f01866b09183136cd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 17 Jul 2020 19:30:40 +0200 Subject: Remove useless casts --- test/path_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/path_test.cpp') diff --git a/test/path_test.cpp b/test/path_test.cpp index 6b95c4f..0ca2f45 100644 --- a/test/path_test.cpp +++ b/test/path_test.cpp @@ -74,8 +74,8 @@ main() assert(!strcmp(Path("/foo/bar").symbol(), "bar")); assert(!strcmp(Path("/").symbol(), "")); - Path original(std::string("/foo/bar")); - assert(original == Path(original)); + const Path original(std::string("/foo/bar")); + assert(original == original); bool valid = true; try { -- cgit v1.2.1