Skip to content

Commit

Permalink
- coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Feb 14, 2024
1 parent dd1423b commit da66efc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion snapper/Btrfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace snapper
if (fstype == "btrfs")
return new Btrfs(subvolume, root_prefix);

return NULL;
return nullptr;
}


Expand Down
2 changes: 1 addition & 1 deletion snapper/Ext4.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace snapper
if (fstype == "ext4")
return new Ext4(subvolume, root_prefix);

return NULL;
return nullptr;
}


Expand Down
4 changes: 2 additions & 2 deletions snapper/Filesystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion snapper/Lvm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace snapper
if (regex_match(fstype, match, rx))
return new Lvm(subvolume, root_prefix, match[1]);

return NULL;
return nullptr;
}


Expand Down

0 comments on commit da66efc

Please sign in to comment.