projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dynamic exceptions
[anna.git]
/
source
/
io
/
AbstractReader.cpp
diff --git
a/source/io/AbstractReader.cpp
b/source/io/AbstractReader.cpp
index
f26d2a5
..
5c7bdea
100644
(file)
--- a/
source/io/AbstractReader.cpp
+++ b/
source/io/AbstractReader.cpp
@@
-46,7
+46,7
@@
io::AbstractReader::~AbstractReader() {
}
void io::AbstractReader::close()
}
void io::AbstractReader::close()
-
throw()
{
+{
delete a_ex;
a_ex = NULL;
delete a_ex;
a_ex = NULL;
@@
-57,7
+57,7
@@
throw() {
}
void io::AbstractReader::open(const std::string& filename)
}
void io::AbstractReader::open(const std::string& filename)
-
throw(RuntimeException
) {
+
noexcept(false
) {
close();
if((a_file = fopen(filename.c_str(), "r")) == NULL)
close();
if((a_file = fopen(filename.c_str(), "r")) == NULL)
@@
-65,7
+65,7
@@
throw(RuntimeException) {
}
void io::AbstractReader::verify()
}
void io::AbstractReader::verify()
-
throw(RuntimeException
) {
+
noexcept(false
) {
if(a_ex != NULL)
throw *a_ex;
if(a_ex != NULL)
throw *a_ex;