Merge pull request #3889 from PSPDFKit-labs/james/avoid-msvc-align-error

MSVC doesn't allow alignment on function params.
This commit is contained in:
Wouter van Oortmerssen 2016-05-31 11:33:10 -07:00
commit 25e4ad19f6
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ public:
// Change elements if you have a non-const pointer to this object.
// Scalars only. See reflection.h, and the documentation.
void Mutate(uoffset_t i, T val) {
void Mutate(uoffset_t i, const T& val) {
assert(i < size());
WriteScalar(data() + i, val);
}