summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.hh b/src/string.hh
index b5ad8e5a..2108c64e 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -164,13 +164,13 @@ public:
};
ZeroTerminatedString zstr() const { return {begin(), end()}; }
-private:
[[gnu::optimize(3)]] // this is recursive for constexpr reason
static constexpr ByteCount strlen(const char* s)
{
return *s == 0 ? 0 : strlen(s+1) + 1;
}
+private:
const char* m_data = nullptr;
ByteCount m_length = 0;
};