Commit d07092a0 authored by Hans Johnson's avatar Hans Johnson
Browse files

STYLE: Use default member initialization

Converts a default constructor’s member initializers into the new
default member initializers in C++11. Other member initializers that match the
default member initializer are removed. This can reduce repeated code or allow
use of ‘= default’.
parent 4c7f64eb
......@@ -66,12 +66,7 @@ class CommandLineArgumentsMapOfStrucs
class CommandLineArgumentsInternal
{
public:
CommandLineArgumentsInternal()
: UnknownArgumentCallback{ nullptr }
, ClientData{ nullptr }
, LastArgument{ 0 }
{
}
CommandLineArgumentsInternal() {}
using VectorOfStrings = CommandLineArgumentsVectorOfStrings;
using CallbacksMap = CommandLineArgumentsMapOfStrucs;
......@@ -82,10 +77,10 @@ public:
String Argv0;
CallbacksMap Callbacks;
CommandLineArguments::ErrorCallbackType UnknownArgumentCallback;
void* ClientData;
CommandLineArguments::ErrorCallbackType UnknownArgumentCallback{ nullptr };
void* ClientData{ nullptr };
VectorOfStrings::size_type LastArgument;
VectorOfStrings::size_type LastArgument{ 0 };
VectorOfStrings UnusedArguments;
};
......
......@@ -314,7 +314,7 @@ class SystemInformationImplementation
public:
using LongLong = SystemInformation::LongLong;
SystemInformationImplementation();
~SystemInformationImplementation();
~SystemInformationImplementation() = default;
const char* GetVendorString() const;
const char* GetVendorID();
......@@ -1507,10 +1507,6 @@ SystemInformationImplementation::SystemInformationImplementation()
this->OSIs64Bit = (sizeof(void*) == 8);
}
SystemInformationImplementation::~SystemInformationImplementation()
{
}
void SystemInformationImplementation::RunCPUCheck()
{
#ifdef _WIN32
......
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