Commit 1ae4e9af authored by jan.koester's avatar jan.koester
Browse files

const save

parent 5b5cff0e
Loading
Loading
Loading
Loading
+2 −2
Changes for src/exception.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -45,11 +45,11 @@ libhttppp::HTTPException::HTTPException(const HTTPException &exp){
libhttppp::HTTPException::~HTTPException(){
}

int libhttppp::HTTPException::getErrorType(){
int libhttppp::HTTPException::getErrorType() const{
    return _curCType;
}

const std::string &libhttppp::HTTPException::what(){
const std::string &libhttppp::HTTPException::what() const{
    return _Msg;
}

+2 −2
Changes for src/exception.h: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -44,8 +44,8 @@ namespace libhttppp {
        HTTPException();
        HTTPException(const HTTPException &exp);
        virtual ~HTTPException();
        int getErrorType();
        const std::string &what();
        int getErrorType() const;
        const std::string &what() const;
        HTTPException& append(const std::string &src);
        HTTPException& operator[](int errtype);
        HTTPException& operator<<(const std::string& src);