diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-15 02:55:16 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:35:32 -0400 |
commit | a087e6ea97494d97580c97705c665cac317a0dc3 (patch) | |
tree | d771c7f88f5b6255cb46b2d69aeec9395b3f982d /error.h | |
parent | 691c29a696d2347faebd5663da9d1dc751f275eb (diff) | |
download | fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.gz fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.bz2 fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.zip |
Cleared out all warnings; started work on getting Python up again.
Diffstat (limited to 'error.h')
-rw-r--r-- | error.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -27,8 +27,8 @@ class file_context : public error_context unsigned long line; public: file_context(const std::string& _file, unsigned long _line, - const std::string& desc = "") throw() - : error_context(desc), file(_file), line(_line) {} + const std::string& _desc = "") throw() + : error_context(_desc), file(_file), line(_line) {} virtual ~file_context() throw() {} virtual void describe(std::ostream& out) const throw() { @@ -45,8 +45,8 @@ class line_context : public error_context { long pos; line_context(const std::string& _line, long _pos, - const std::string& desc = "") throw() - : error_context(desc), line(_line), pos(_pos) {} + const std::string& _desc = "") throw() + : error_context(_desc), line(_line), pos(_pos) {} virtual ~line_context() throw() {} virtual void describe(std::ostream& out) const throw() { @@ -103,22 +103,22 @@ class str_exception : public std::exception { class error : public str_exception { public: - error(const std::string& reason, error_context * ctxt = NULL) throw() - : str_exception(reason, ctxt) {} + error(const std::string& _reason, error_context * _ctxt = NULL) throw() + : str_exception(_reason, _ctxt) {} virtual ~error() throw() {} }; class fatal : public str_exception { public: - fatal(const std::string& reason, error_context * ctxt = NULL) throw() - : str_exception(reason, ctxt) {} + fatal(const std::string& _reason, error_context * _ctxt = NULL) throw() + : str_exception(_reason, _ctxt) {} virtual ~fatal() throw() {} }; class fatal_assert : public fatal { public: - fatal_assert(const std::string& reason, error_context * ctxt = NULL) throw() - : fatal(std::string("assertion failed '") + reason + "'", ctxt) {} + fatal_assert(const std::string& _reason, error_context * _ctxt = NULL) throw() + : fatal(std::string("assertion failed '") + _reason + "'", _ctxt) {} virtual ~fatal_assert() throw() {} }; |