Commit 39f5eeb7 authored by Milo Yip's avatar Milo Yip

Merge pull request #198 from pah/cleanup/misc

Minor (documentation) cleanups
parents 8acaaa75 c88cc331
...@@ -45,7 +45,7 @@ RAPIDJSON_DIAG_OFF(effc++) ...@@ -45,7 +45,7 @@ RAPIDJSON_DIAG_OFF(effc++)
struct DiyFp { struct DiyFp {
DiyFp() {} DiyFp() {}
DiyFp(uint64_t f, int e) : f(f), e(e) {} DiyFp(uint64_t fp, int exp) : f(fp), e(exp) {}
DiyFp(double d) { DiyFp(double d) {
union { union {
......
...@@ -59,12 +59,14 @@ public: ...@@ -59,12 +59,14 @@ public:
//! Constructor //! Constructor
/*! \param os Output stream. /*! \param os Output stream.
\param allocator User supplied allocator. If it is null, it will create a private one. \param stackAllocator User supplied allocator. If it is null, it will create a private one.
\param levelDepth Initial capacity of stack. \param levelDepth Initial capacity of stack.
*/ */
explicit
Writer(OutputStream& os, StackAllocator* stackAllocator = 0, size_t levelDepth = kDefaultLevelDepth) : Writer(OutputStream& os, StackAllocator* stackAllocator = 0, size_t levelDepth = kDefaultLevelDepth) :
os_(&os), level_stack_(stackAllocator, levelDepth * sizeof(Level)), hasRoot_(false) {} os_(&os), level_stack_(stackAllocator, levelDepth * sizeof(Level)), hasRoot_(false) {}
explicit
Writer(StackAllocator* allocator = 0, size_t levelDepth = kDefaultLevelDepth) : Writer(StackAllocator* allocator = 0, size_t levelDepth = kDefaultLevelDepth) :
os_(0), level_stack_(allocator, levelDepth * sizeof(Level)), hasRoot_(false) {} os_(0), level_stack_(allocator, levelDepth * sizeof(Level)), hasRoot_(false) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment