Corrected member initialisation order (addressing -Wreorder warnings)
This commit is contained in:
@@ -43,8 +43,8 @@ namespace DebugServer::Gdb
|
||||
Connection& operator = (Connection&&) = delete;
|
||||
|
||||
Connection(Connection&& other) noexcept
|
||||
: interruptEventNotifier(other.interruptEventNotifier)
|
||||
, socketFileDescriptor(other.socketFileDescriptor)
|
||||
: socketFileDescriptor(other.socketFileDescriptor)
|
||||
, interruptEventNotifier(other.interruptEventNotifier)
|
||||
, epollInstance(std::move(other.epollInstance))
|
||||
, readInterruptEnabled(other.readInterruptEnabled)
|
||||
{
|
||||
|
||||
@@ -10,9 +10,9 @@ namespace DebugServer::Gdb
|
||||
std::map<GdbRegisterId, Targets::TargetRegisterDescriptorId> targetRegisterDescriptorIdsByGdbRegisterId
|
||||
)
|
||||
: targetDescriptor(targetDescriptor)
|
||||
, gdbRegisterDescriptorsById(gdbRegisterDescriptorsById)
|
||||
, memoryOffsetsByType(memoryOffsetsByType)
|
||||
, memoryOffsets(memoryOffsetsByType.getValues())
|
||||
, gdbRegisterDescriptorsById(gdbRegisterDescriptorsById)
|
||||
, gdbRegisterIdsByTargetRegisterDescriptorId(gdbRegisterIdsByTargetRegisterDescriptorId)
|
||||
, targetRegisterDescriptorIdsByGdbRegisterId(targetRegisterDescriptorIdsByGdbRegisterId)
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user