Deprecate Channel::GetChannelX() in favor of Channel::GetX()

This commit is contained in:
Alexey Rybalchenko
2019-05-13 16:06:28 +02:00
committed by Dennis Klein
parent 73ccefa4cb
commit 3538d9f410
3 changed files with 10 additions and 13 deletions

View File

@@ -293,7 +293,7 @@ void FairMQDevice::ConnectWrapper()
this_thread::sleep_for(chrono::milliseconds(sleepTimeInMS));
for (auto& chan : fUninitializedConnectingChannels) {
string key{"chans." + chan->GetChannelPrefix() + "." + chan->GetChannelIndex() + ".address"};
string key{"chans." + chan->GetPrefix() + "." + chan->GetIndex() + ".address"};
string newAddress = fConfig->GetValue<string>(key);
if (newAddress != chan->GetAddress()) {
chan->UpdateAddress(newAddress);
@@ -322,7 +322,7 @@ void FairMQDevice::AttachChannels(vector<FairMQChannel*>& chans)
auto itr = chans.begin();
while (itr != chans.end()) {
if ((*itr)->ValidateChannel()) {
if ((*itr)->Validate()) {
(*itr)->Init();
if (AttachChannel(**itr)) {
(*itr)->SetModified(false);