made a few things const

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13355 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen
2005-06-29 22:12:31 +00:00
parent 9672813d0d
commit eb1ee3240e
2 changed files with 5 additions and 5 deletions
@@ -297,7 +297,7 @@ mp3Decoder::DecodeNextChunk()
}
bool
mp3Decoder::IsValidStream(uint8 *buffer, int size)
mp3Decoder::IsValidStream(const uint8 *buffer, int size)
{
// check 3 consecutive frame headers to make sure
// that the length encoded in the header is correct,
@@ -325,9 +325,9 @@ mp3Decoder::IsValidStream(uint8 *buffer, int size)
}
int
mp3Decoder::GetFrameLength(void *header)
mp3Decoder::GetFrameLength(const void *header)
{
uint8 *h = (uint8 *)header;
const uint8 *h = static_cast<const uint8 *>(header);
if (h[0] != 0xff)
return -1;
@@ -51,8 +51,8 @@ public:
private:
status_t DecodeNextChunk();
bool IsValidStream(uint8 *buffer, int size);
int GetFrameLength(void *header);
bool IsValidStream(const uint8 *buffer, int size);
int GetFrameLength(const void *header);
private:
struct mpstr fMpgLibPrivate;