From 38dace775c359e1913648ac52b1092aac3e41b14 Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Sat, 7 Feb 2015 14:49:25 +0100 Subject: [PATCH] warning fixes (closes #235, closes #236) --- include/rapidjson/reader.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/rapidjson/reader.h b/include/rapidjson/reader.h index f0aa318c..5f545819 100644 --- a/include/rapidjson/reader.h +++ b/include/rapidjson/reader.h @@ -382,7 +382,7 @@ public: typedef typename SourceEncoding::Ch Ch; //!< SourceEncoding character type //! Constructor. - /*! \param allocator Optional allocator for allocating stack memory. (Only use for non-destructive parsing) + /*! \param stackAllocator Optional allocator for allocating stack memory. (Only use for non-destructive parsing) \param stackCapacity stack capacity in bytes for storing a single decoded string. (Only use for non-destructive parsing) */ GenericReader(StackAllocator* stackAllocator = 0, size_t stackCapacity = kDefaultStackCapacity) : stack_(stackAllocator, stackCapacity), parseResult_() {} @@ -728,12 +728,12 @@ private: } template - class NumberStream {}; + class NumberStream; template class NumberStream { public: - NumberStream(GenericReader& reader, InputStream& is) : is(is) { (void)reader; } + NumberStream(GenericReader& reader, InputStream& s) : is(s) { (void)reader; } ~NumberStream() {} RAPIDJSON_FORCEINLINE Ch Peek() const { return is.Peek(); }