X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fxml%2FDocumentFile.cpp;h=824d99b18a8c29b1fe00e61b3770f0873f3c7154;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hp=c51ed79093b74f8b183db3e00b1823d2d730c7ec;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/source/xml/DocumentFile.cpp b/source/xml/DocumentFile.cpp index c51ed79..824d99b 100644 --- a/source/xml/DocumentFile.cpp +++ b/source/xml/DocumentFile.cpp @@ -27,7 +27,7 @@ using namespace anna; using namespace anna::xml; _xmlDoc* DocumentFile::do_initialize(const char* filename) -throw(RuntimeException) { +noexcept(false) { LOGMETHOD(TraceMethod tf("anna::xml::DocumentFile", "do_initialize", ANNA_FILE_LOCATION)); _xmlDoc* result; a_filename = filename; @@ -53,14 +53,14 @@ throw(RuntimeException) { } _xmlDoc* DocumentFile::do_initialize(const anna::DataBlock&) -throw(RuntimeException) { +noexcept(false) { throw RuntimeException("xml::DocumentFile::do_initialize | Not implemented", ANNA_FILE_LOCATION); return NULL; } const anna::DataBlock& DocumentFile::getContent() const -throw(RuntimeException) { +noexcept(false) { const anna::DataBlock& result = Document::getContent(); if(result.isEmpty() == false) @@ -74,7 +74,7 @@ throw(RuntimeException) { 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 (this)->setContent(buffer, size); delete buffer;