Skip to content

Commit 05f4ff9

Browse files
committed
Remove superfluous c_str(), decode_hex() parameter is a string_view
1 parent c3b18c7 commit 05f4ff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test-wkb.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,15 @@ TEST_CASE("wkb hex decode of valid hex string")
215215
static_cast<char>(0x99),
216216
static_cast<char>(0xff)};
217217

218-
auto const result = decode_hex(hex.c_str());
218+
auto const result = decode_hex(hex);
219219
REQUIRE(result.size() == hex.size() / 2);
220220
REQUIRE(result == data);
221221
}
222222

223223
TEST_CASE("wkb hex decode of empty string is okay")
224224
{
225225
std::string const hex{};
226-
REQUIRE(decode_hex(hex.c_str()).empty());
226+
REQUIRE(decode_hex(hex).empty());
227227
}
228228

229229
TEST_CASE("wkb hex decode of string with odd number of characters fails")

0 commit comments

Comments
 (0)