summaryrefslogtreecommitdiff
path: root/src/iodevice.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/iodevice.cc')
-rw-r--r--src/iodevice.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/iodevice.cc b/src/iodevice.cc
index 894e3e2..e68167f 100644
--- a/src/iodevice.cc
+++ b/src/iodevice.cc
@@ -31,7 +31,7 @@ IODevice::IODevice(int f)
, dumpfd(0)
{}
-IODevice::~IODevice(void) {}
+IODevice::~IODevice() {}
IODevice &IODevice::operator<<(ostream &(*source)(ostream &))
{
@@ -54,7 +54,7 @@ IODevice &IODevice::operator<<(ostream &(*source)(ostream &))
return *this;
}
-bool IODevice::canRead(void) const
+bool IODevice::canRead() const
{
return false;
}
@@ -116,7 +116,7 @@ void IODevice::setTimeout(unsigned int t)
flags &= ~HasTimeout;
}
-unsigned int IODevice::getTimeout(void) const
+unsigned int IODevice::getTimeout() const
{
return timeout;
}
@@ -126,7 +126,7 @@ void IODevice::setOutputLevel(LogLevel level)
outputLevel = level;
}
-IODevice::LogLevel IODevice::getOutputLevel(void) const
+IODevice::LogLevel IODevice::getOutputLevel() const
{
return outputLevel;
}
@@ -136,7 +136,7 @@ void IODevice::setOutputLevelLimit(LogLevel level)
outputLevelLimit = level;
}
-IODevice::LogLevel IODevice::getOutputLevelLimit(void) const
+IODevice::LogLevel IODevice::getOutputLevelLimit() const
{
return outputLevelLimit;
}
@@ -194,52 +194,52 @@ bool IODevice::skipTo(char c)
return true;
}
-std::string IODevice::service(void) const
+std::string IODevice::service() const
{
return "nul";
}
-bool IODevice::waitForWrite(void) const
+bool IODevice::waitForWrite() const
{
return false;
}
-bool IODevice::waitForRead(void) const
+bool IODevice::waitForRead() const
{
return false;
}
-IODevice::WriteResult IODevice::write(void)
+IODevice::WriteResult IODevice::write()
{
return WriteError;
}
-bool IODevice::fillInputBuffer(void)
+bool IODevice::fillInputBuffer()
{
return false;
}
-IODevice::Error IODevice::getLastError(void) const
+IODevice::Error IODevice::getLastError() const
{
return error;
}
-std::string IODevice::getLastErrorString(void) const
+std::string IODevice::getLastErrorString() const
{
return errorString;
}
-unsigned int IODevice::getReadCount(void) const
+unsigned int IODevice::getReadCount() const
{
return readCount;
}
-unsigned int IODevice::getWriteCount(void) const
+unsigned int IODevice::getWriteCount() const
{
return writeCount;
}
-void IODevice::enableProtocolDumping(void)
+void IODevice::enableProtocolDumping()
{
BincStream ss;
ss << "/tmp/bincimap-dump-" << static_cast<int>(time(nullptr)) << "-"