From 6b3912e1dd05720e4f47bf58dfbb28d49ae5a4ac Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Fri, 16 Jul 2010 21:25:27 +0000 Subject: [PATCH] Moved the CanteraError constructor to a .cpp file. --- Cantera/src/base/ctexceptions.h | 4 ++-- Cantera/src/base/misc.cpp | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Cantera/src/base/ctexceptions.h b/Cantera/src/base/ctexceptions.h index 1c29cbd36..1a7d9c0f4 100644 --- a/Cantera/src/base/ctexceptions.h +++ b/Cantera/src/base/ctexceptions.h @@ -90,14 +90,14 @@ namespace Cantera { CanteraError(std::string procedure, std::string msg); //! Destructor for base class does nothing - virtual ~CanteraError() throw() {} + virtual ~CanteraError() throw(); protected: //! Empty base constructor is made protected so that it may be used only by //! inherited classes. /*! * We want to discourage throwing an error containing no information. */ - CanteraError() {} + CanteraError(); }; //! Array size error. diff --git a/Cantera/src/base/misc.cpp b/Cantera/src/base/misc.cpp index 8750abe59..ef1ef6507 100644 --- a/Cantera/src/base/misc.cpp +++ b/Cantera/src/base/misc.cpp @@ -1509,6 +1509,15 @@ protected: CanteraError::CanteraError(std::string proc, std::string msg) { app()->addError(proc, msg); } + + CanteraError::CanteraError() + { + } + + CanteraError::~CanteraError() throw() + { + } + ArraySizeError::ArraySizeError(std::string proc, int sz, int reqd) : CanteraError(proc, "Array size ("+int2str(sz)+