]> git.lyx.org Git - features.git/commitdiff
Mover.h: let move be defined
authorGuillaume MM <gm@lyx.org>
Sun, 2 Apr 2017 22:31:37 +0000 (00:31 +0200)
committerGuillaume MM <gm@lyx.org>
Thu, 20 Apr 2017 21:49:02 +0000 (23:49 +0200)
src/Mover.h

index 4d1c1c79006ff8817e1f02603fd2e11cef72a53c..e432a3d3494f5f3c3458822f2066b588089ecdfe 100644 (file)
@@ -27,7 +27,13 @@ namespace support { class FileName; }
 class Mover
 {
 public:
-       virtual ~Mover() {}
+       virtual ~Mover() = default;
+       Mover(Mover &&) = default;
+       Mover & operator=(Mover &&) = default;
+       Mover(Mover const &) = default;
+       Mover & operator=(Mover const &) = default;
+
+       Mover() = default;
 
        /** Copy file @c from to @c to.
         *  This version should be used to copy files from the original
@@ -109,9 +115,7 @@ protected:
 class SpecialisedMover : public Mover
 {
 public:
-       SpecialisedMover() {}
-
-       virtual ~SpecialisedMover() {}
+       SpecialisedMover() = default;
 
        /** @c command should be of the form
         *  <code>