Use StringRef for Opt's optNames

Removes another ~70 allocations.
This commit is contained in:
Martin Hořeňovský committed 2023-12-26 16:03:22 +01:00
1 parent 5d5f42f99b
commit cd3c7ebe87
3 files changed
+13 -10

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ namespace Catch {
}
// Returns a substring of [start, start + length).
// If start + length > size(), then the substring is [start, start + size()).
// If start + length > size(), then the substring is [start, size()).
// If start > size(), then the substring is empty.
constexpr StringRef substr(size_type start, size_type length) const noexcept {
if (start < m_size) {