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 324882 8023e756661aad0e6d21c91229b8804c0714f006
parent 324881 d2bfabe4d0150f2c168f1c5830111a1753124f9c
child 324883 9c229cf88ec224739f127082c1e8ec4c322bcd6f
push id31022
push userkwierso@gmail.com
push dateThu, 01 Dec 2016 23:07:35 +0000
treeherdermozilla-central@9b8bf5feb0b5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstnikkel
bugs1317973
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;