mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Transports: use transportType as static member.
This commit is contained in:
committed by
Mohammad Al-Turany
parent
b237b3f9d7
commit
3c73c690f7
@@ -22,9 +22,8 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
static FairMQ::Transport gTransportType = FairMQ::Transport::NN;
|
||||
|
||||
string FairMQMessageNN::fDeviceID = string();
|
||||
FairMQ::Transport FairMQMessageNN::fTransportType = FairMQ::Transport::NN;
|
||||
|
||||
FairMQMessageNN::FairMQMessageNN()
|
||||
: fMessage(nullptr)
|
||||
@@ -149,7 +148,7 @@ void FairMQMessageNN::SetDeviceId(const string& deviceId)
|
||||
|
||||
FairMQ::Transport FairMQMessageNN::GetType() const
|
||||
{
|
||||
return gTransportType;
|
||||
return fTransportType;
|
||||
}
|
||||
|
||||
void FairMQMessageNN::Copy(const unique_ptr<FairMQMessage>& msg)
|
||||
|
Reference in New Issue
Block a user