Apply clang-tidy modernize-use-equals-default check

This commit is contained in:
Joe Loser
2018-06-02 22:26:44 -04:00
committed by Nik Bougalis
parent 3aaf6d7857
commit 5f8037c55b
41 changed files with 47 additions and 173 deletions

View File

@@ -72,11 +72,6 @@ codePointToUTF8 (unsigned int cp)
// Class Reader
// //////////////////////////////////////////////////////////////////
Reader::Reader ()
{
}
bool
Reader::parse ( std::string const& document,
Value& root)

View File

@@ -30,16 +30,10 @@ const Int Value::minInt = Int ( ~ (UInt (-1) / 2) );
const Int Value::maxInt = Int ( UInt (-1) / 2 );
const UInt Value::maxUInt = UInt (-1);
ValueAllocator::~ValueAllocator ()
{
}
class DefaultValueAllocator : public ValueAllocator
{
public:
~DefaultValueAllocator () override
{
}
virtual ~DefaultValueAllocator() = default;
char* makeMemberName ( const char* memberName ) override
{

View File

@@ -157,9 +157,6 @@ ValueIteratorBase::memberName () const
// //////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////
ValueConstIterator::ValueConstIterator ()
{
}
ValueConstIterator::ValueConstIterator ( const Value::ObjectValues::iterator& current )
: ValueIteratorBase ( current )
@@ -182,10 +179,6 @@ ValueConstIterator::operator = ( const ValueIteratorBase& other )
// //////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////
ValueIterator::ValueIterator ()
{
}
ValueIterator::ValueIterator ( const Value::ObjectValues::iterator& current )
: ValueIteratorBase ( current )

View File

@@ -181,9 +181,6 @@ std::string valueToQuotedString ( const char* value )
// Class FastWriter
// //////////////////////////////////////////////////////////////////
FastWriter::FastWriter ()
{
}
std::string
FastWriter::write ( const Value& root )