diff options
author | James Cook <james@lindenlab.com> | 2009-11-28 16:49:29 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-11-28 16:49:29 -0800 |
commit | fd71800bb1c68c5d06199cf06de469ab7acdd2dc (patch) | |
tree | e52c92cf976beb29dbd3409676dfc705bf689b12 | |
parent | 11cc56316c2c2638cb9089c8b29d533e58439cca (diff) |
De-inline virtual functions with llerrs to reduce link time.
-rw-r--r-- | indra/llmessage/lldatapacker.cpp | 12 | ||||
-rw-r--r-- | indra/llmessage/lldatapacker.h | 5 |
2 files changed, 15 insertions, 2 deletions
diff --git a/indra/llmessage/lldatapacker.cpp b/indra/llmessage/lldatapacker.cpp index 1f52bf3a23..a1b5c7908d 100644 --- a/indra/llmessage/lldatapacker.cpp +++ b/indra/llmessage/lldatapacker.cpp @@ -55,6 +55,18 @@ LLDataPacker::LLDataPacker() : mPassFlags(0), mWriteEnabled(FALSE) { } +//virtual +void LLDataPacker::reset() +{ + llerrs << "Using unimplemented datapacker reset!" << llendl; +} + +//virtual +void LLDataPacker::dumpBufferToLog() +{ + llerrs << "dumpBufferToLog not implemented for this type!" << llendl; +} + BOOL LLDataPacker::packFixed(const F32 value, const char *name, const BOOL is_signed, const U32 int_bits, const U32 frac_bits) { diff --git a/indra/llmessage/lldatapacker.h b/indra/llmessage/lldatapacker.h index 92bfec698b..b8d9fcbdd4 100644 --- a/indra/llmessage/lldatapacker.h +++ b/indra/llmessage/lldatapacker.h @@ -45,8 +45,9 @@ class LLDataPacker public: virtual ~LLDataPacker() {} - virtual void reset() { llerrs << "Using unimplemented datapacker reset!" << llendl; }; - virtual void dumpBufferToLog() { llerrs << "dumpBufferToLog not implemented for this type!" << llendl; } + // Not required to override, but error to call? + virtual void reset(); + virtual void dumpBufferToLog(); virtual BOOL hasNext() const = 0; |