Skip to content

Commit a6dd0ca

Browse files
committed
fix: -Wdeprecated-declarations
Since FairMQ 1.5.0: ``` warning: ‘fair::mq::Message& fair::mq::Parts::AtRef(size_type)’ is deprecated: Redundant, dereference at call site e.g. '*(parts.At(index))' instead. [-Wdeprecated-declarations] ``` see FairRootGroup/FairMQ@a58b487
1 parent a60b5c1 commit a6dd0ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/MQ/serialization/processor.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/********************************************************************************
2-
* Copyright (C) 2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+
* Copyright (C) 2023-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33
* *
44
* This software is distributed under the terms of the *
55
* GNU Lesser General Public Licence (LGPL) version 3, *
@@ -56,7 +56,7 @@ struct Processor : fair::mq::Device
5656
partsOut.AddPart(std::move(partsIn.At(0)));
5757
partsOut.AddPart(NewMessage());
5858

59-
BoostSerializer<MyHit>().Serialize(partsOut.AtRef(1), &hits);
59+
BoostSerializer<MyHit>().Serialize(*partsOut.At(1), &hits);
6060
if (Send(partsOut, "data2") >= 0) {
6161
sentMsgs++;
6262
}

0 commit comments

Comments
 (0)