QmlDesigner: use GTEST_INTERNAL_HAS_STRING_VIEW for str compare

constData() was a workaround for the tests

Task-number: QDS-9847
Change-Id: I23fcca794ab50101ae70034079af46303c98c648
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Tim Jenssen
2023-05-08 16:04:52 +02:00
committed by Marco Bubke
parent ed6008c1c2
commit 1d183e4de7
3 changed files with 12 additions and 16 deletions

View File

@@ -278,11 +278,6 @@ public:
return Q_LIKELY(isShortString()) ? m_data.shortString : m_data.reference.pointer;
}
const char *constData() const noexcept
{
return data();
}
iterator begin() noexcept
{
return data();
@@ -315,7 +310,7 @@ public:
const_iterator begin() const noexcept
{
return constData();
return data();
}
const_iterator end() const noexcept