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