Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ab91794 authored by Krzysztof Kosiński's avatar Krzysztof Kosiński
Browse files

libsnapshot: fix -Wdefaulted-function-delete warnings.

AutoDevice has an explicitly deleted move constructor, so its
derived types cannot be default-movable.

Bug: 241680050
Test: presubmit
Change-Id: I65de669a55fd9923c9a1f25a7fdbd16770e2f101
parent cc00a09d
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -59,7 +59,6 @@ struct AutoUnmapDevice : AutoDevice {
    // On destruct, delete |name| from device mapper.
    // On destruct, delete |name| from device mapper.
    AutoUnmapDevice(android::dm::IDeviceMapper* dm, const std::string& name)
    AutoUnmapDevice(android::dm::IDeviceMapper* dm, const std::string& name)
        : AutoDevice(name), dm_(dm) {}
        : AutoDevice(name), dm_(dm) {}
    AutoUnmapDevice(AutoUnmapDevice&& other) = default;
    ~AutoUnmapDevice();
    ~AutoUnmapDevice();


  private:
  private:
@@ -72,7 +71,6 @@ struct AutoUnmapImage : AutoDevice {
    // On destruct, delete |name| from image manager.
    // On destruct, delete |name| from image manager.
    AutoUnmapImage(android::fiemap::IImageManager* images, const std::string& name)
    AutoUnmapImage(android::fiemap::IImageManager* images, const std::string& name)
        : AutoDevice(name), images_(images) {}
        : AutoDevice(name), images_(images) {}
    AutoUnmapImage(AutoUnmapImage&& other) = default;
    ~AutoUnmapImage();
    ~AutoUnmapImage();


  private:
  private:
@@ -86,7 +84,6 @@ struct AutoDeleteSnapshot : AutoDevice {
    AutoDeleteSnapshot(SnapshotManager* manager, SnapshotManager::LockedFile* lock,
    AutoDeleteSnapshot(SnapshotManager* manager, SnapshotManager::LockedFile* lock,
                       const std::string& name)
                       const std::string& name)
        : AutoDevice(name), manager_(manager), lock_(lock) {}
        : AutoDevice(name), manager_(manager), lock_(lock) {}
    AutoDeleteSnapshot(AutoDeleteSnapshot&& other);
    ~AutoDeleteSnapshot();
    ~AutoDeleteSnapshot();


  private:
  private: