projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove warnings
[anna.git]
/
source
/
xml
/
DocumentFile.cpp
diff --git
a/source/xml/DocumentFile.cpp
b/source/xml/DocumentFile.cpp
index
c51ed79
..
f5ac226
100644
(file)
--- a/
source/xml/DocumentFile.cpp
+++ b/
source/xml/DocumentFile.cpp
@@
-74,7
+74,7
@@
throw(RuntimeException) {
const int size = lseek(stream, 0, SEEK_END);
lseek(stream, 0, SEEK_SET);
char* buffer = new char [size];
const int size = lseek(stream, 0, SEEK_END);
lseek(stream, 0, SEEK_SET);
char* buffer = new char [size];
- read(stream, buffer, size);
+
ssize_t r =
read(stream, buffer, size);
close(stream);
const_cast <DocumentFile*>(this)->setContent(buffer, size);
delete buffer;
close(stream);
const_cast <DocumentFile*>(this)->setContent(buffer, size);
delete buffer;