summaryrefslogtreecommitdiff
path: root/src/include/mime-inputsource.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/mime-inputsource.h')
-rw-r--r--src/include/mime-inputsource.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/include/mime-inputsource.h b/src/include/mime-inputsource.h
index 011c4c3..f383e88 100644
--- a/src/include/mime-inputsource.h
+++ b/src/include/mime-inputsource.h
@@ -17,17 +17,17 @@ namespace Binc {
class MimeInputSource {
public:
inline MimeInputSource(int fd, unsigned int start = 0);
- virtual inline ~MimeInputSource(void);
+ virtual inline ~MimeInputSource();
- virtual inline bool fillInputBuffer(void);
- virtual inline void reset(void);
+ virtual inline bool fillInputBuffer();
+ virtual inline void reset();
inline void seek(unsigned int offset);
inline bool getChar(char *c);
- inline void ungetChar(void);
- inline int getFileDescriptor(void) const;
+ inline void ungetChar();
+ inline int getFileDescriptor() const;
- inline unsigned int getOffset(void) const;
+ inline unsigned int getOffset() const;
private:
int fd;
@@ -52,9 +52,9 @@ namespace Binc {
seek(start);
}
- inline MimeInputSource::~MimeInputSource(void) {}
+ inline MimeInputSource::~MimeInputSource() {}
- inline bool MimeInputSource::fillInputBuffer(void)
+ inline bool MimeInputSource::fillInputBuffer()
{
char raw[4096];
ssize_t nbytes = read(fd, raw, sizeof(raw));
@@ -87,7 +87,7 @@ namespace Binc {
return true;
}
- inline void MimeInputSource::reset(void)
+ inline void MimeInputSource::reset()
{
offset = head = tail = 0;
lastChar = '\0';
@@ -122,12 +122,12 @@ namespace Binc {
--offset;
}
- inline int MimeInputSource::getFileDescriptor(void) const
+ inline int MimeInputSource::getFileDescriptor() const
{
return fd;
}
- inline unsigned int MimeInputSource::getOffset(void) const
+ inline unsigned int MimeInputSource::getOffset() const
{
return offset;
}