Small bug fix - constness was not intended for Device#net_for_terminal on non-const mode

This commit is contained in:
Matthias Koefferlein 2022-07-03 00:08:14 +02:00
parent b0268b62b0
commit c227cb9ef3
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ static const db::Net *net_for_terminal_by_name_const (const db::Device *device,
}
}
static const db::Net *net_for_terminal_by_name (db::Device *device, const std::string &name)
static db::Net *net_for_terminal_by_name (db::Device *device, const std::string &name)
{
if (! device->device_class () || ! device->device_class ()->has_terminal_with_name (name)) {
return 0;