summaryrefslogtreecommitdiff
path: root/src/include/memory_chunk.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-23 18:39:16 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-23 18:39:16 +0800
commit9df8678bb0bab71da9631ff13244555e7a33c458 (patch)
tree6e670765d7d11a769edef5aa8c9461ca14511a47 /src/include/memory_chunk.h
parent40c82f591553e94f21816b2d940aab1d47f2b3d3 (diff)
downloadlibpinyin-9df8678bb0bab71da9631ff13244555e7a33c458.tar.gz
fixes code style in src/include
Diffstat (limited to 'src/include/memory_chunk.h')
-rw-r--r--src/include/memory_chunk.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/memory_chunk.h b/src/include/memory_chunk.h
index 3d9ea35..c72e92f 100644
--- a/src/include/memory_chunk.h
+++ b/src/include/memory_chunk.h
@@ -116,7 +116,7 @@ public:
}
void* end() const{
- return m_data_end;
+ return m_data_end;
}
size_t size() const{
@@ -214,15 +214,15 @@ public:
/* free old data */
reset();
- size_t file_size;
+ size_t file_size;
FILE* file = fopen(filename, "r");
if ( !file )
return false;
- fseek(file, 0, SEEK_END);
- file_size = ftell(file);
- fseek(file, 0, SEEK_SET);
+ fseek(file, 0, SEEK_END);
+ file_size = ftell(file);
+ fseek(file, 0, SEEK_SET);
int data_len = file_size;
void* data = malloc(data_len);