aboutsummaryrefslogtreecommitdiff
path: root/src/utility
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-02-19 19:11:33 +0100
committerAdrian Kummerlaender2016-02-19 19:11:33 +0100
commit5021c97e31ef8bb7cf40471e3fa98b451097451b (patch)
treec4d7bec0b183ceb6fabc3dd70bbe1d7953eb5d60 /src/utility
parent50f2ef4ba33b540fa5a8e324996fa639500765f4 (diff)
downloadchange-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.gz
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.bz2
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.lz
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.xz
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.tar.zst
change-5021c97e31ef8bb7cf40471e3fa98b451097451b.zip
Rename some functions to match overall naming scheme
Diffstat (limited to 'src/utility')
-rw-r--r--src/utility/io.cc2
-rw-r--r--src/utility/io.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/utility/io.cc b/src/utility/io.cc
index 3f54c6f..ae895c4 100644
--- a/src/utility/io.cc
+++ b/src/utility/io.cc
@@ -19,7 +19,7 @@ FileDescriptorGuard::~FileDescriptorGuard() {
close(this->fd_);
}
-FileDescriptorGuard::operator int() {
+FileDescriptorGuard::operator int() const {
return this->fd_;
}
diff --git a/src/utility/io.h b/src/utility/io.h
index 1015ddb..363c458 100644
--- a/src/utility/io.h
+++ b/src/utility/io.h
@@ -10,7 +10,7 @@ class FileDescriptorGuard {
FileDescriptorGuard(const std::string& path);
~FileDescriptorGuard();
- operator int();
+ operator int() const;
private:
int fd_;