Bug 1034930 - Improve the const correctness of BinaryOutputStream::writeBytes; r=upstream

This commit is contained in:
Ehsan Akhgari 2014-09-04 16:17:19 -04:00
parent a5de334278
commit f86faf74b9
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ class BinaryOutputStream
write(v.c_str(), v.length());
}
void writeBytes(unsigned char *bytes, size_t count)
void writeBytes(const unsigned char *bytes, size_t count)
{
write(bytes, count);
}

View File

@ -1269,7 +1269,7 @@ bool ProgramBinary::save(void* binary, GLsizei bufSize, GLsizei *length)
stream.writeInt(GL_PROGRAM_BINARY_ANGLE);
stream.writeInt(ANGLE_MAJOR_VERSION);
stream.writeInt(ANGLE_MINOR_VERSION);
stream.writeBytes(reinterpret_cast<unsigned char*>(ANGLE_COMMIT_HASH), ANGLE_COMMIT_HASH_SIZE);
stream.writeBytes(reinterpret_cast<const unsigned char*>(ANGLE_COMMIT_HASH), ANGLE_COMMIT_HASH_SIZE);
stream.writeInt(ANGLE_COMPILE_OPTIMIZATION_LEVEL);
for (unsigned int i = 0; i < MAX_VERTEX_ATTRIBS; ++i)