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]
/
include
/
anna
/
time
/
internal
/
Timezone.hpp
diff --git
a/include/anna/time/internal/Timezone.hpp
b/include/anna/time/internal/Timezone.hpp
index
532ccc4
..
fbd463e
100644
(file)
--- a/
include/anna/time/internal/Timezone.hpp
+++ b/
include/anna/time/internal/Timezone.hpp
@@
-83,20
+83,20
@@
public:
}
// be careful: empty if unset
}
// be careful: empty if unset
- const std::string & getValue(void) const
throw()
{
+ const std::string & getValue(void) const {
return (a_value);
}
return (a_value);
}
- bool isInitialized(void) const
throw()
{
+ bool isInitialized(void) const {
return (a_initialized);
}
//Unset is when getenv("TZ") returns NULL. Then, /etc/localtime used to be a copy or symlink to
// any of the /usr/share/zoneinfo available timezones.
return (a_initialized);
}
//Unset is when getenv("TZ") returns NULL. Then, /etc/localtime used to be a copy or symlink to
// any of the /usr/share/zoneinfo available timezones.
- bool unsetTZ(void) const
throw()
{ return (a_unsetTZ); }
+ bool unsetTZ(void) const { return (a_unsetTZ); }
- bool apply() const
throw()
{
+ bool apply() const {
// http://stackoverflow.com/questions/5873029/questions-about-putenv-and-setenv
if(unsetTZ()) {
unsetenv("TZ");
// http://stackoverflow.com/questions/5873029/questions-about-putenv-and-setenv
if(unsetTZ()) {
unsetenv("TZ");
@@
-120,7
+120,7
@@
public:
return true;
}
return true;
}
- std::string asString() const
throw()
{
+ std::string asString() const {
std::string result = getValue();
if (unsetTZ()) return "[TZ unset]";
if (result == "") return "[TZ empty]";
std::string result = getValue();
if (unsetTZ()) return "[TZ unset]";
if (result == "") return "[TZ empty]";