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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user