diff options
author | callum_linden <none@none> | 2014-12-10 08:56:13 -0800 |
---|---|---|
committer | callum_linden <none@none> | 2014-12-10 08:56:13 -0800 |
commit | 3d94afafb530b9841c151a24799a08f064b70ede (patch) | |
tree | 99458635106750599b69fc3dd863805c63a8cff0 | |
parent | 23711c927561ee85b6d46e7e741cdc652649686e (diff) |
Fix for build problems with LLTrace::AccumulatorBuffer copy ctor in VS2013 (only)
-rw-r--r-- | indra/llcommon/lltraceaccumulators.h | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/indra/llcommon/lltraceaccumulators.h b/indra/llcommon/lltraceaccumulators.h index 42fad8a793..6e048535e3 100644 --- a/indra/llcommon/lltraceaccumulators.h +++ b/indra/llcommon/lltraceaccumulators.h @@ -62,16 +62,16 @@ namespace LLTrace {} public: - - AccumulatorBuffer(const AccumulatorBuffer& other = *getDefaultBuffer()) - : mStorageSize(0), - mStorage(NULL) - { - resize(sNextStorageSlot); - for (S32 i = 0; i < sNextStorageSlot; i++) - { - mStorage[i] = other.mStorage[i]; - } + AccumulatorBuffer()
+ : mStorageSize(0),
+ mStorage(NULL)
+ {
+ const AccumulatorBuffer& other = *getDefaultBuffer();
+ resize(sNextStorageSlot);
+ for (S32 i = 0; i < sNextStorageSlot; i++)
+ {
+ mStorage[i] = other.mStorage[i];
+ }
} ~AccumulatorBuffer() @@ -93,6 +93,18 @@ namespace LLTrace return mStorage[index]; } + + AccumulatorBuffer(const AccumulatorBuffer& other)
+ : mStorageSize(0),
+ mStorage(NULL)
+ {
+ resize(sNextStorageSlot);
+ for (S32 i = 0; i < sNextStorageSlot; i++)
+ {
+ mStorage[i] = other.mStorage[i];
+ }
+ }
+ void addSamples(const AccumulatorBuffer<ACCUMULATOR>& other, EBufferAppendType append_type) { llassert(mStorageSize >= sNextStorageSlot && other.mStorageSize >= sNextStorageSlot); |