diff --git a/src/ViewModels/httprequestviewmodel.cpp b/src/ViewModels/httprequestviewmodel.cpp index 308a19d..6c6f1ca 100644 --- a/src/ViewModels/httprequestviewmodel.cpp +++ b/src/ViewModels/httprequestviewmodel.cpp @@ -574,8 +574,8 @@ QString HttpRequestViewModel::getAllFields() const noexcept } ); - qsizetype count = m_items->size(); - QStringList lines(count); + QStringList lines; + lines.resize(m_items->size()); int iterator = 0; foreach(auto item, sortedList) {