Commit 393aefce by Maarten L. Hekkelman

small optimisation

parent 227ff1b8
......@@ -223,7 +223,7 @@ bool is_valid_pdbx_file(const file &file, std::string_view dictionary)
letter = '(' + comp_id + ')';
}
if (iequals(std::string{si, si + letter.length()}, letter))
if (iequals(std::string_view{si, si + letter.length()}, letter))
{
match = true;
si += letter.length();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment