Bug 1317973 - Replace default bodies of special member functions with = default; r=tnikkel
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 16 Nov 2016 15:23:37 +0100
changeset 324915 8023e756661aad0e6d21c91229b8804c0714f006
parent 324914 d2bfabe4d0150f2c168f1c5830111a1753124f9c
child 324916 9c229cf88ec224739f127082c1e8ec4c322bcd6f
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewerstnikkel
bugs1317973
milestone53.0a1
Bug 1317973 - Replace default bodies of special member functions with = default; r=tnikkel MozReview-Commit-ID: EV0tM3A26XY
widget/gtk/nsWindow.cpp
widget/nsBaseDragService.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -6393,23 +6393,19 @@ nsWindow::DispatchRestoreEventAccessible
 {
     DispatchEventToRootAccessible(nsIAccessibleEvent::EVENT_WINDOW_RESTORE);
 }
 
 #endif /* #ifdef ACCESSIBILITY */
 
 // nsChildWindow class
 
-nsChildWindow::nsChildWindow()
-{
-}
-
-nsChildWindow::~nsChildWindow()
-{
-}
+nsChildWindow::nsChildWindow() = default;
+
+nsChildWindow::~nsChildWindow() = default;
 
 NS_IMETHODIMP_(void)
 nsWindow::SetInputContext(const InputContext& aContext,
                           const InputContextAction& aAction)
 {
     if (!mIMContext) {
         return;
     }
--- a/widget/nsBaseDragService.cpp
+++ b/widget/nsBaseDragService.cpp
@@ -57,19 +57,17 @@ nsBaseDragService::nsBaseDragService()
     mDragEventDispatchedToChildProcess(false),
     mDragAction(DRAGDROP_ACTION_NONE),
     mDragActionFromChildProcess(DRAGDROP_ACTION_UNINITIALIZED), mTargetSize(0,0),
     mContentPolicyType(nsIContentPolicy::TYPE_OTHER),
     mSuppressLevel(0), mInputSource(nsIDOMMouseEvent::MOZ_SOURCE_MOUSE)
 {
 }
 
-nsBaseDragService::~nsBaseDragService()
-{
-}
+nsBaseDragService::~nsBaseDragService() = default;
 
 NS_IMPL_ISUPPORTS(nsBaseDragService, nsIDragService, nsIDragSession)
 
 //---------------------------------------------------------
 NS_IMETHODIMP
 nsBaseDragService::SetCanDrop(bool aCanDrop)
 {
   mCanDrop = aCanDrop;