mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Cleanup: Corrected object initialization using {}
This commit is contained in:
parent
9b5d0a7cdd
commit
5110a83efa
6 changed files with 11 additions and 11 deletions
|
@ -168,7 +168,7 @@ bool Path::exists () const
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Path::is_directory () const
|
||||
{
|
||||
struct stat s = {0};
|
||||
struct stat s {};
|
||||
if (! stat (_data.c_str (), &s) &&
|
||||
S_ISDIR (s.st_mode))
|
||||
return true;
|
||||
|
@ -188,7 +188,7 @@ bool Path::is_absolute () const
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Path::is_link () const
|
||||
{
|
||||
struct stat s = {0};
|
||||
struct stat s {};
|
||||
if (! lstat (_data.c_str (), &s) &&
|
||||
S_ISLNK (s.st_mode))
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue