diff --git a/Source/WTF/wtf/text/qt/StringQt.cpp b/Source/WTF/wtf/text/qt/StringQt.cpp index a187b56c6a102..d224905fce119 100644 --- a/Source/WTF/wtf/text/qt/StringQt.cpp +++ b/Source/WTF/wtf/text/qt/StringQt.cpp @@ -51,7 +51,7 @@ String::String(QLatin1StringView view) { if (view.isNull()) return; - m_impl = StringImpl::create(reinterpret_cast_ptr(view.data()), view.length()); + m_impl = StringImpl::create(reinterpret_cast_ptr(view.data()), view.size()); } String::String(QStringView view)