Skip to content
Snippets Groups Projects
Commit ff1f9a05 authored by Steven Murray's avatar Steven Murray
Browse files

Corrected the throw clause of the assignment operator method of the

SmartFILEPtr class.
parent 6cd40837
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,8 @@ void castor::tape::utils::SmartFILEPtr::reset(FILE *const file = NULL)
// SmartFILEPtr assignment operator
//-----------------------------------------------------------------------------
castor::tape::utils::SmartFILEPtr
&castor::tape::utils::SmartFILEPtr::operator=(SmartFILEPtr& obj) throw() {
&castor::tape::utils::SmartFILEPtr::operator=(SmartFILEPtr& obj)
throw(castor::exception::Exception) {
reset(obj.release());
......@@ -79,7 +80,7 @@ castor::tape::utils::SmartFILEPtr
//-----------------------------------------------------------------------------
// destructor
//-----------------------------------------------------------------------------
castor::tape::utils::SmartFILEPtr::~SmartFILEPtr() {
castor::tape::utils::SmartFILEPtr::~SmartFILEPtr() throw() {
reset();
}
......
......@@ -76,14 +76,15 @@ public:
* previous owner (obj).
* </ul>
*/
SmartFILEPtr &operator=(SmartFILEPtr& obj) throw();
SmartFILEPtr &operator=(SmartFILEPtr& obj)
throw(castor::exception::Exception) ;
/**
* Destructor.
*
* Closes the owned FILE pointer if there is one.
*/
~SmartFILEPtr();
~SmartFILEPtr() throw();
/**
* Returns the owned pointer or NULL if this smart pointer does not own one.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment