summaryrefslogtreecommitdiff
path: root/zinflate.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-07-29 01:18:33 +0000
committerweidai <weidai11@users.noreply.github.com>2003-07-29 01:18:33 +0000
commit9c5c4769a9c7a16aecc6cc7dd297bfe243dd022f (patch)
tree7a78ed3becd2c14f449d1cc66a58edd414256d94 /zinflate.h
parent259ee22eba4e4e6471caa088479a93fbee894e11 (diff)
downloadcryptopp-git-9c5c4769a9c7a16aecc6cc7dd297bfe243dd022f.tar.gz
fix potential threading problem with initialization of static objects
Diffstat (limited to 'zinflate.h')
-rw-r--r--zinflate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zinflate.h b/zinflate.h
index 34c39a8b..14829fde 100644
--- a/zinflate.h
+++ b/zinflate.h
@@ -127,8 +127,8 @@ private:
static const HuffmanDecoder *FixedLiteralDecoder();
static const HuffmanDecoder *FixedDistanceDecoder();
- const HuffmanDecoder *GetLiteralDecoder() const;
- const HuffmanDecoder *GetDistanceDecoder() const;
+ const HuffmanDecoder& GetLiteralDecoder() const;
+ const HuffmanDecoder& GetDistanceDecoder() const;
enum State {PRE_STREAM, WAIT_HEADER, DECODING_BODY, POST_STREAM, AFTER_END};
State m_state;