Merge pull request #198 from pah/cleanup/misc

Minor (documentation) cleanups
This commit is contained in:
Milo Yip 2014-11-17 23:02:47 +08:00
commit 39f5eeb764
2 changed files with 4 additions and 2 deletions

View File

@ -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 {

View File

@ -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) {}