void UserCache::add(uid_t ID) const
{
struct passwd const * entry = getpwuid(ID);
- users[ID] = entry ? entry->pw_name : tostr(int(ID));
+ users[ID] = entry ? entry->pw_name : convert<string>(int(ID));
}
void GroupCache::add(gid_t ID) const
{
struct group const * entry = getgrgid(ID);
- groups[ID] = entry ? entry->gr_name : tostr(int(ID));
+ groups[ID] = entry ? entry->gr_name : convert<string>(int(ID));
}
+
// local instances
UserCache lyxUserCache;
GroupCache lyxGroupCache;