summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-09-27 19:54:18 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-09-27 19:54:18 +0200
commit9c60823871c50f5aad93ad73c4b16a0985fb4918 (patch)
tree85b625bc25b30054472bd5204964ec25ff5e4504 /src
parent36ab6defac59d289a513e74c28e21f437adead98 (diff)
Some really minor cleanups of io.hh
Diffstat (limited to 'src')
-rw-r--r--src/io.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/io.hh b/src/io.hh
index abd91fa..c39fa2e 100644
--- a/src/io.hh
+++ b/src/io.hh
@@ -8,16 +8,17 @@ namespace io {
class pipe {
public:
pipe();
- pipe(pipe&& pipe);
+ pipe(pipe&& other);
~pipe();
- pipe& operator=(pipe&& pipe) {
+ pipe& operator=(pipe&& other) {
reset();
- swap(pipe);
+ swap(other);
return *this;
}
bool open();
+
explicit operator bool() const {
return read() != -1;
}