Replace usage of range-checked 'at' method when vector/string has already been size checked

This commit is contained in:
Eduardo Arias
2024-06-02 20:07:19 +00:00
parent 99ce9779e6
commit 0613ceeb75
11 changed files with 26 additions and 30 deletions

View File

@@ -43,7 +43,7 @@ bool XmlNS::init(std::string *error) {
return false;
}
if (m_href.at(0) == '\'' && m_href.size() > 3) {
if (m_href[0] == '\'' && m_href.size() > 3) {
m_href.erase(0, 1);
m_href.pop_back();
}