Skip to content

Commit

Permalink
need size() to be compatible with QLatin1String
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed Jan 12, 2024
1 parent a9606c2 commit 28231d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WTF/wtf/text/qt/StringQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ String::String(QLatin1StringView view)
{
if (view.isNull())
return;
m_impl = StringImpl::create(reinterpret_cast_ptr<const LChar*>(view.data()), view.length());
m_impl = StringImpl::create(reinterpret_cast_ptr<const LChar*>(view.data()), view.size());
}

String::String(QStringView view)
Expand Down

0 comments on commit 28231d1

Please sign in to comment.