Permalink
Browse files

Whitespace cleanup in io/BufferReader

  • Loading branch information...
1 parent 4789bef commit a1d761f03ad75888728cf9039a3749b1cab1c1f9 @programble programble committed Sep 17, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 sdk/io/BufferReader.ooc
View
@@ -16,8 +16,8 @@ BufferReader: class extends Reader {
// nothing to close.
}
- read: func(dest: Char*, destOffset: Int, maxRead: Int) -> SizeT {
- if(marker >= buffer size) {
+ read: func (dest: Char*, destOffset: Int, maxRead: Int) -> SizeT {
+ if (marker >= buffer size) {
Exception new(This, "Buffer overflow! Offset is larger than buffer size.") throw()
}
@@ -42,9 +42,9 @@ BufferReader: class extends Reader {
return marker < buffer size
}
- rewind: func(offset: Int) {
+ rewind: func (offset: Int) {
marker -= offset
- if(marker < 0) {
+ if (marker < 0) {
marker = 0
}
}
@@ -53,6 +53,6 @@ BufferReader: class extends Reader {
return marker
}
- reset: func(=marker) {}
+ reset: func (=marker) {}
}

0 comments on commit a1d761f

Please sign in to comment.