Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unnecessary const_cast in DataFormats/L1GlobalTrigger #11746

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion DataFormats/L1GlobalTrigger/src/L1GtFdlWord.cc
Expand Up @@ -895,7 +895,7 @@ void L1GtFdlWord::unpack(const unsigned char* fdlPtr)
<< std::endl;

const cms_uint64_t* payload =
reinterpret_cast<cms_uint64_t*>(const_cast<unsigned char*>(fdlPtr));
reinterpret_cast<cms_uint64_t const*>(fdlPtr);

setBoardId(payload[BoardIdWord]);
setBxInEvent(payload[BxInEventWord]);
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/L1GlobalTrigger/src/L1GtfeExtWord.cc
Expand Up @@ -601,7 +601,7 @@ void L1GtfeExtWord::unpack(const unsigned char* gtfePtr)
const unsigned char* gtfeExtPtr = gtfePtr + gtfeWord.getSize();

const cms_uint64_t* payload =
reinterpret_cast<cms_uint64_t*>(const_cast<unsigned char*>(gtfeExtPtr));
reinterpret_cast<cms_uint64_t const*>(gtfeExtPtr);

int BlockSizeExt = this->getSize()/8;
int NumberBstBlocks = m_bst.size();
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/L1GlobalTrigger/src/L1GtfeWord.cc
Expand Up @@ -384,7 +384,7 @@ void L1GtfeWord::unpack(const unsigned char* gtfePtr)
<< std::endl;

const cms_uint64_t* payload =
reinterpret_cast<cms_uint64_t*>(const_cast<unsigned char*>(gtfePtr));
reinterpret_cast<cms_uint64_t const*>(gtfePtr);

setBoardId(payload[BoardIdWord]);
setRecordLength1(payload[RecordLength1Word]);
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/L1GlobalTrigger/src/L1TcsWord.cc
Expand Up @@ -504,7 +504,7 @@ void L1TcsWord::unpack(const unsigned char* tcsPtr)
<< std::endl;

const cms_uint64_t* payload =
reinterpret_cast<cms_uint64_t*>(const_cast<unsigned char*>(tcsPtr));
reinterpret_cast<cms_uint64_t const*>(tcsPtr);

setBoardId(payload[BoardIdWord]);
setBxNr(payload[BxNrWord]);
Expand Down