]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- coding style 870/head
authorArvin Schnell <aschnell@suse.de>
Wed, 14 Feb 2024 08:40:37 +0000 (09:40 +0100)
committerArvin Schnell <aschnell@suse.de>
Wed, 14 Feb 2024 08:40:37 +0000 (09:40 +0100)
snapper/Btrfs.cc
snapper/Ext4.cc
snapper/Filesystem.cc
snapper/Lvm.cc

index e0043708b6fefe1e1ed43cbbd61d4b37574754b2..ab1525661d26af59de1dd28570c62f82522fb020 100644 (file)
@@ -76,7 +76,7 @@ namespace snapper
        if (fstype == "btrfs")
            return new Btrfs(subvolume, root_prefix);
 
-       return NULL;
+       return nullptr;
     }
 
 
index c9827b2489f9d3c958f1c338d62462d23040cc0b..6585bf61b10866fee1349fe99655f38de03c1442 100644 (file)
@@ -50,7 +50,7 @@ namespace snapper
        if (fstype == "ext4")
            return new Ext4(subvolume, root_prefix);
 
-       return NULL;
+       return nullptr;
     }
 
 
index 7f4d27cbfa0518c11cb28b961f7b97191c3b04bf..1114d8dc26a4e023025e9c5a483b92234ecd094c 100644 (file)
@@ -113,10 +113,10 @@ namespace snapper
 #ifdef ENABLE_LVM
                &Lvm::create,
 #endif
-               NULL
+               nullptr
        };
 
-       for (const func_t* func = funcs; *func != NULL; ++func)
+       for (const func_t* func = funcs; *func != nullptr; ++func)
        {
            Filesystem* fs = (*func)(fstype, subvolume, root_prefix);
            if (fs)
index dd89289d71634eb7d35caf89a34a95f50c6af757..9caf71db0e1f5ce14004efdc1b08f48901915186 100644 (file)
@@ -62,7 +62,7 @@ namespace snapper
        if (regex_match(fstype, match, rx))
            return new Lvm(subvolume, root_prefix, match[1]);
 
-       return NULL;
+       return nullptr;
     }