Bug 1318335 - Replace default bodies of special member functions with = default; in ipc/. r=billm
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Thu, 17 Nov 2016 15:08:41 +0200
changeset 324600 e8582a4033dcc63a0fbc529586773166fb43f9ef
parent 324599 d27c040abf57c04727a97e9079d759d71a77cebb
child 324601 6deceff197dc41aac40663be22dab6c698db1eb8
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersbillm
bugs1318335
milestone53.0a1
Bug 1318335 - Replace default bodies of special member functions with = default; in ipc/. r=billm MozReview-Commit-ID: GV8abDSyxj5
ipc/glue/BackgroundParentImpl.cpp
ipc/glue/FileDescriptorSetParent.cpp
ipc/glue/SharedMemoryBasic_mach.mm
--- a/ipc/glue/BackgroundParentImpl.cpp
+++ b/ipc/glue/BackgroundParentImpl.cpp
@@ -394,17 +394,17 @@ public:
     IPC::Principal principal;
     if (!mActor->Init(principal, mFilter)) {
       MOZ_CRASH("UDPSocketCallback - failed init");
     }
     return NS_OK;
   }
 
 private:
-  ~InitUDPSocketParentCallback() {};
+  ~InitUDPSocketParentCallback() = default;
 
   RefPtr<UDPSocketParent> mActor;
   nsCString mFilter;
 };
 
 } // namespace
 
 auto
--- a/ipc/glue/FileDescriptorSetParent.cpp
+++ b/ipc/glue/FileDescriptorSetParent.cpp
@@ -10,19 +10,17 @@ namespace mozilla {
 namespace ipc {
 
 FileDescriptorSetParent::FileDescriptorSetParent(
                                           const FileDescriptor& aFileDescriptor)
 {
   mFileDescriptors.AppendElement(aFileDescriptor);
 }
 
-FileDescriptorSetParent::~FileDescriptorSetParent()
-{
-}
+FileDescriptorSetParent::~FileDescriptorSetParent() = default;
 
 void
 FileDescriptorSetParent::ForgetFileDescriptors(
                                      nsTArray<FileDescriptor>& aFileDescriptors)
 {
   aFileDescriptors.Clear();
   mFileDescriptors.SwapElements(aFileDescriptors);
 }
--- a/ipc/glue/SharedMemoryBasic_mach.mm
+++ b/ipc/glue/SharedMemoryBasic_mach.mm
@@ -82,17 +82,17 @@
 
 namespace mozilla {
 namespace ipc {
 
 struct MemoryPorts {
   MachPortSender* mSender;
   ReceivePort* mReceiver;
 
-  MemoryPorts() {}
+  MemoryPorts() = default;
   MemoryPorts(MachPortSender* sender, ReceivePort* receiver)
    : mSender(sender), mReceiver(receiver) {}
 };
 
 // Protects gMemoryCommPorts and gThreads.
 static StaticMutex gMutex;
 
 static std::map<pid_t, MemoryPorts> gMemoryCommPorts;
@@ -118,17 +118,17 @@ struct PIDPair {
   PIDPair(pid_t requester, pid_t requested)
    : mRequester(requester), mRequested(requested) {}
 };
 
 struct ListeningThread {
   pthread_t mThread;
   MemoryPorts* mPorts;
 
-  ListeningThread() {}
+  ListeningThread() = default;
   ListeningThread(pthread_t thread, MemoryPorts* ports)
    : mThread(thread), mPorts(ports) {}
 };
 
 struct SharePortsReply {
   uint64_t serial;
   mach_port_t port;
 };