Use data() instead of c_str() where appropriate
This commit is contained in:
parent
ec2827f5fc
commit
d5a5a83ad4
9 changed files with 18 additions and 18 deletions
|
|
@ -135,7 +135,7 @@ static void sigPollHandler(int sigNo)
|
|||
catch (Error & e) {
|
||||
/* Shouldn't happen. */
|
||||
string s = "impossible: " + e.msg() + '\n';
|
||||
write(STDERR_FILENO, s.c_str(), s.size());
|
||||
write(STDERR_FILENO, s.data(), s.size());
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue