Corrected member initialisation order (addressing -Wreorder warnings)

This commit is contained in:
Nav
2023-08-19 21:53:00 +01:00
parent c622c9bd2e
commit 9a6e22e6c7
25 changed files with 49 additions and 42 deletions

View File

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

View File

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