I don't see reason why you have empty definition on line 291 and here you fill it. It makes more sense to have here
```
string dev_type = LanItems::GetDeviceType( itemId);
```