16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 21:49:19 +02:00

Simplify len_common_prefix

This commit is contained in:
docentYT
2026-05-01 13:57:33 +02:00
parent 664c340d84
commit 9c27b54960
4 changed files with 6 additions and 9 deletions

View File

@@ -237,7 +237,7 @@ void itemproperties_panel::update_group()
for (auto const &name : names)
{
// NOTE: first calculation runs over two instances of the same name, but, eh
auto const prefixlength{len_common_prefix(m_groupprefix, name)};
auto const prefixlength{len_common_prefix(m_groupprefix, name.get())};
if (prefixlength > 0)
{
m_groupprefix = m_groupprefix.substr(0, prefixlength);