mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1355933: P2. Make arguments const. r=kamidphish
MozReview-Commit-ID: AwtpgSJQFE0 --HG-- extra : rebase_source : ffc96069b1745ed79954bb5fe8a3bdc7cf4bb43b
This commit is contained in:
parent
8cdffedf9d
commit
049cd63c78
@ -159,11 +159,12 @@ public:
|
||||
}
|
||||
|
||||
// Returns whether the valid
|
||||
bool Parse(int64_t aOffset, uint8_t* aStart, uint8_t* aEnd) {
|
||||
bool Parse(int64_t aOffset, const uint8_t* aStart, const uint8_t* aEnd)
|
||||
{
|
||||
MOZ_ASSERT(aStart && aEnd);
|
||||
|
||||
bool found = false;
|
||||
uint8_t* ptr = aStart;
|
||||
const uint8_t* ptr = aStart;
|
||||
// Require at least 7 bytes of data at the end of the buffer for the minimum
|
||||
// ADTS frame header.
|
||||
while (ptr < aEnd - 7 && !found) {
|
||||
@ -216,7 +217,7 @@ public:
|
||||
// true if one was found. After returning, the variable passed to
|
||||
// 'aBytesToSkip' holds the amount of bytes to be skipped (if any) in order to
|
||||
// jump across a large ID3v2 tag spanning multiple buffers.
|
||||
bool Parse(int64_t aOffset, uint8_t* aStart, uint8_t* aEnd)
|
||||
bool Parse(int64_t aOffset, const uint8_t* aStart, const uint8_t* aEnd)
|
||||
{
|
||||
const bool found = mFrame.Parse(aOffset, aStart, aEnd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user