void Connection::getItems(ItemSet &result, bool getKeys, bool getOthers) { ItemSet items; if (getKeys) get<MSCKeyInfo, Key, MSCListKeys>(this, items); if (getOthers) get<MSCObjectInfo, Object, MSCListObjects>(this, items); items.swap(result); }