Changeset 18988


Ignore:
Timestamp:
04/06/18 16:59:41 (7 years ago)
Author:
tbretz
Message:
Added some explicit casts to make clang++ more happy and remove an unused data member, simplified the include paths
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fadctrl.cc

    r18897 r18988  
    1818#include "EventBuilderWrapper.h"
    1919
    20 #include "../externals/zofits.h"
     20#include "zofits.h"
    2121
    2222namespace ba = boost::asio;
     
    3131class ConnectionFAD : public Connection
    3232{
    33     uint16_t fSlot;
    34 //    tcp::endpoint fEndpoint;
    35 
    3633    vector<uint16_t> fBuffer;
    3734
     
    217214            }
    218215
    219             fChannelHeader[i] = vector<uint16_t>((uint16_t*)ptr, (uint16_t*)ptr+sizeof(FAD::ChannelHeader)/2);
     216            fChannelHeader[i] = vector<uint16_t>(reinterpret_cast<uint16_t*>(ptr),
     217                                                 reinterpret_cast<uint16_t*>(ptr)+sizeof(FAD::ChannelHeader)/2);
    220218            ptr += sizeof(FAD::ChannelHeader);
    221219
     
    356354public:
    357355    ConnectionFAD(ba::io_service& ioservice, MessageImp &imp, uint16_t slot) :
    358         Connection(ioservice, imp()), fSlot(slot),
     356        Connection(ioservice, imp()),
    359357        fIsVerbose(false), fIsHexOutput(false), fIsDataOutput(false),
    360358        fBlockTransmission(false), fCounter(0),
Note: See TracChangeset for help on using the changeset viewer.