From da66efc3acb486d01488893e7550e8eaf2c2517f Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Wed, 14 Feb 2024 09:40:37 +0100 Subject: [PATCH] - coding style --- snapper/Btrfs.cc | 2 +- snapper/Ext4.cc | 2 +- snapper/Filesystem.cc | 4 ++-- snapper/Lvm.cc | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/snapper/Btrfs.cc b/snapper/Btrfs.cc index e0043708..ab152566 100644 --- a/snapper/Btrfs.cc +++ b/snapper/Btrfs.cc @@ -76,7 +76,7 @@ namespace snapper if (fstype == "btrfs") return new Btrfs(subvolume, root_prefix); - return NULL; + return nullptr; } diff --git a/snapper/Ext4.cc b/snapper/Ext4.cc index c9827b24..6585bf61 100644 --- a/snapper/Ext4.cc +++ b/snapper/Ext4.cc @@ -50,7 +50,7 @@ namespace snapper if (fstype == "ext4") return new Ext4(subvolume, root_prefix); - return NULL; + return nullptr; } diff --git a/snapper/Filesystem.cc b/snapper/Filesystem.cc index 7f4d27cb..1114d8dc 100644 --- a/snapper/Filesystem.cc +++ b/snapper/Filesystem.cc @@ -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) diff --git a/snapper/Lvm.cc b/snapper/Lvm.cc index dd89289d..9caf71db 100644 --- a/snapper/Lvm.cc +++ b/snapper/Lvm.cc @@ -62,7 +62,7 @@ namespace snapper if (regex_match(fstype, match, rx)) return new Lvm(subvolume, root_prefix, match[1]); - return NULL; + return nullptr; }