Utils: Add more constexpr to SmallString

Change-Id: I480ef040a8d9c5b9edc515c7fd58db2fad42dc86
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2017-08-29 13:02:28 +02:00
parent 2bc537ca6b
commit 881cd5a799
3 changed files with 6 additions and 2 deletions

View File

@@ -97,11 +97,13 @@ public:
return m_size == 0;
}
constexpr
const_iterator begin() const noexcept
{
return data();
}
constexpr
const_iterator end() const noexcept
{
return data() + size();
@@ -140,8 +142,6 @@ public:
return m_pointer[0] == characterToSearch;
}
private:
const char *m_pointer;
size_type m_size;