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
/
Directory.cpp
diff --git
a/source/io/Directory.cpp
b/source/io/Directory.cpp
index
0a853cd
..
59f85da
100644
(file)
--- a/
source/io/Directory.cpp
+++ b/
source/io/Directory.cpp
@@
-28,7
+28,7
@@
io::Directory::Directory() :
}
void io::Directory::setPattern(const char* expression)
}
void io::Directory::setPattern(const char* expression)
-
throw(RuntimeException
) {
+
noexcept(false
) {
if(a_hasPattern == true) {
regfree(&a_regex);
a_hasPattern = false;
if(a_hasPattern == true) {
regfree(&a_regex);
a_hasPattern = false;
@@
-57,7
+57,7
@@
throw(RuntimeException) {
}
void io::Directory:: read(const char* dirName, const Mode::_v mode)
}
void io::Directory:: read(const char* dirName, const Mode::_v mode)
-
throw(RuntimeException
) {
+
noexcept(false
) {
DIR* handle;
dirent* entry;
string file;
DIR* handle;
dirent* entry;
string file;
@@
-91,7
+91,7
@@
throw(RuntimeException) {
}
io::Directory::const_iterator io::Directory::find(const std::string& file) const
}
io::Directory::const_iterator io::Directory::find(const std::string& file) const
-
throw()
{
+{
return std::find(begin(), end(), file);
}
return std::find(begin(), end(), file);
}