aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/accounts/passwd_accounts_handler.cc
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-06-20 18:43:09 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-06-23 11:59:55 -0700
commit3f2aca298c28e50745926a96758f4641dc73cf51 (patch)
tree88c7cbdcc9e6bb6e530849f71ca9df4055f6f418 /paludis/repositories/accounts/passwd_accounts_handler.cc
parentf5088a55a9c88793a53172b7029713f2f64e687a (diff)
downloadpaludis-3f2aca298c28e50745926a96758f4641dc73cf51.tar.gz
paludis-3f2aca298c28e50745926a96758f4641dc73cf51.tar.xz
C++11: auto convert to nullptr via cpp11-migrate
This is a blanket migration via the clang C++11 migration tool to convert NULL pointer to nullptr usage. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
Diffstat (limited to 'paludis/repositories/accounts/passwd_accounts_handler.cc')
-rw-r--r--paludis/repositories/accounts/passwd_accounts_handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/repositories/accounts/passwd_accounts_handler.cc b/paludis/repositories/accounts/passwd_accounts_handler.cc
index 15195adc7..f76d5e159 100644
--- a/paludis/repositories/accounts/passwd_accounts_handler.cc
+++ b/paludis/repositories/accounts/passwd_accounts_handler.cc
@@ -68,7 +68,7 @@ PasswdAccountsHandler::merge_user(const MergeParams & params)
username = k->parse_value();
- if (0 != getpwnam(username.c_str()))
+ if (nullptr != getpwnam(username.c_str()))
throw ActionFailedError("User '" + username + "' already exists");
} while (false);
@@ -225,7 +225,7 @@ PasswdAccountsHandler::merge_group(const MergeParams & params)
groupname = k->parse_value();
- if (0 != getgrnam(groupname.c_str()))
+ if (nullptr != getgrnam(groupname.c_str()))
throw ActionFailedError("Group '" + groupname + "' already exists");
} while (false);