summaryrefslogtreecommitdiff
path: root/src/IOFile.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /src/IOFile.h
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/IOFile.h')
-rw-r--r--src/IOFile.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/IOFile.h b/src/IOFile.h
index bb810435..8d3fa39b 100644
--- a/src/IOFile.h
+++ b/src/IOFile.h
@@ -44,10 +44,11 @@ namespace aria2 {
// This is a wrapper base class intended to provide
// fopen/fclose/fread/fwrite/fgets functionality.
-class IOFile:public OutputFile {
+class IOFile : public OutputFile {
private:
typedef void (IOFile::*unspecified_bool_type)() const;
void goodState() const {}
+
public:
IOFile() {}
virtual ~IOFile() {}
@@ -84,6 +85,7 @@ public:
static const char WRITE[];
// Mode for append
static const char APPEND[];
+
protected:
virtual size_t onRead(void* ptr, size_t count) = 0;
virtual size_t onWrite(const void* ptr, size_t count) = 0;