Skip to content

Commit 938e5aa

Browse files
Making const what should be const
The begin()/end() methods returning const_iterator should be const.
1 parent 491b7d1 commit 938e5aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Framework/Utils/include/DPLUtils/RawParser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,12 +481,12 @@ class RawParser
481481
// only define the const_iterator because the parser will allow read-only access
482482
using const_iterator = Iterator<RawDataHeaderInfo const, raw_parser::ConcreteParserVariants<MAX_SIZE>>;
483483

484-
const_iterator begin()
484+
const_iterator begin() const
485485
{
486486
return const_iterator(mParser);
487487
}
488488

489-
const_iterator end()
489+
const_iterator end() const
490490
{
491491
return const_iterator(mParser, -1);
492492
}

0 commit comments

Comments
 (0)