Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/src/stdexcept.cpp

    rbc56f30 r0d221d2  
    3131#include <stdexcept>
    3232#include <string>
    33 #include <str.h>
    3433
    3534namespace std
    3635{
    3736    logic_error::logic_error(const string& what)
    38         : what_{::helenos::str_dup(what.c_str())}
     37        : what_{hel::str_dup(what.c_str())}
    3938    { /* DUMMY BODY */ }
    4039
    4140    logic_error::logic_error(const char* what)
    42         : what_{::helenos::str_dup(what)}
     41        : what_{hel::str_dup(what)}
    4342    { /* DUMMY BODY */ }
    4443
    4544    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_)}
    4746    { /* DUMMY BODY */ }
    4847
     
    5150        if (what_)
    5251            free(what_);
    53         what_ = ::helenos::str_dup(other.what_);
     52        what_ = hel::str_dup(other.what_);
    5453
    5554        return *this;
     
    115114
    116115    runtime_error::runtime_error(const string& what)
    117         : what_{::helenos::str_dup(what.c_str())}
     116        : what_{hel::str_dup(what.c_str())}
    118117    { /* DUMMY BODY */ }
    119118
    120119    runtime_error::runtime_error(const char* what)
    121         : what_{::helenos::str_dup(what)}
     120        : what_{hel::str_dup(what)}
    122121    { /* DUMMY BODY */ }
    123122
    124123    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_)}
    126125    { /* DUMMY BODY */ }
    127126
     
    130129        if (what_)
    131130            free(what_);
    132         what_ = ::helenos::str_dup(other.what_);
     131        what_ = hel::str_dup(other.what_);
    133132
    134133        return *this;
Note: See TracChangeset for help on using the changeset viewer.