Changes in uspace/lib/cpp/src/stdexcept.cpp [bc56f30:0d221d2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/src/stdexcept.cpp
rbc56f30 r0d221d2 31 31 #include <stdexcept> 32 32 #include <string> 33 #include <str.h>34 33 35 34 namespace std 36 35 { 37 36 logic_error::logic_error(const string& what) 38 : what_{ ::helenos::str_dup(what.c_str())}37 : what_{hel::str_dup(what.c_str())} 39 38 { /* DUMMY BODY */ } 40 39 41 40 logic_error::logic_error(const char* what) 42 : what_{ ::helenos::str_dup(what)}41 : what_{hel::str_dup(what)} 43 42 { /* DUMMY BODY */ } 44 43 45 44 logic_error::logic_error(const logic_error& other) noexcept 46 : exception{other}, what_{ ::helenos::str_dup(other.what_)}45 : exception{other}, what_{hel::str_dup(other.what_)} 47 46 { /* DUMMY BODY */ } 48 47 … … 51 50 if (what_) 52 51 free(what_); 53 what_ = ::helenos::str_dup(other.what_);52 what_ = hel::str_dup(other.what_); 54 53 55 54 return *this; … … 115 114 116 115 runtime_error::runtime_error(const string& what) 117 : what_{ ::helenos::str_dup(what.c_str())}116 : what_{hel::str_dup(what.c_str())} 118 117 { /* DUMMY BODY */ } 119 118 120 119 runtime_error::runtime_error(const char* what) 121 : what_{ ::helenos::str_dup(what)}120 : what_{hel::str_dup(what)} 122 121 { /* DUMMY BODY */ } 123 122 124 123 runtime_error::runtime_error(const runtime_error& other) noexcept 125 : exception{other}, what_{ ::helenos::str_dup(other.what_)}124 : exception{other}, what_{hel::str_dup(other.what_)} 126 125 { /* DUMMY BODY */ } 127 126 … … 130 129 if (what_) 131 130 free(what_); 132 what_ = ::helenos::str_dup(other.what_);131 what_ = hel::str_dup(other.what_); 133 132 134 133 return *this;
Note:
See TracChangeset
for help on using the changeset viewer.