mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
AK: Rename ValueRestorer => ScopedValueRollback.
Qt had a pretty good name for this concept, so let's steal it. :^)
This commit is contained in:
parent
03b9f6b7f8
commit
9fb2a65716
3 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
#include <AK/PrintfImplementation.h>
|
||||
#include <AK/ScopedValueRollback.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <AK/ValueRestorer.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
@ -510,7 +510,7 @@ FILE* popen(const char* command, const char* type)
|
|||
|
||||
int rc = pipe(pipe_fds);
|
||||
if (rc < 0) {
|
||||
ValueRestorer restorer(errno);
|
||||
ScopedValueRollback rollback(errno);
|
||||
perror("pipe");
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue