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

Added missing throw() and const qualifiers

parent b7a98920
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
//-----------------------------------------------------------------------------
// constructor
//-----------------------------------------------------------------------------
castor::tape::utils::SmartFILEPtr::SmartFILEPtr() :
castor::tape::utils::SmartFILEPtr::SmartFILEPtr() throw() :
m_file(NULL) {
}
......@@ -40,7 +40,7 @@ castor::tape::utils::SmartFILEPtr::SmartFILEPtr() :
//-----------------------------------------------------------------------------
// constructor
//-----------------------------------------------------------------------------
castor::tape::utils::SmartFILEPtr::SmartFILEPtr(FILE *const file) :
castor::tape::utils::SmartFILEPtr::SmartFILEPtr(FILE *const file) throw() :
m_file(file) {
}
......@@ -88,7 +88,7 @@ castor::tape::utils::SmartFILEPtr::~SmartFILEPtr() {
//-----------------------------------------------------------------------------
// get
//-----------------------------------------------------------------------------
FILE *castor::tape::utils::SmartFILEPtr::get() throw() {
FILE *castor::tape::utils::SmartFILEPtr::get() const throw() {
return m_file;
}
......
......@@ -44,16 +44,15 @@ public:
/**
* Constructor.
*
*/
SmartFILEPtr();
SmartFILEPtr() throw();
/**
* Constructor.
*
* @param file The FILE pointer to be owned by the smart pointer.
*/
SmartFILEPtr(FILE *const file);
SmartFILEPtr(FILE *const file) throw();
/**
* Take ownership of the specified FILE pointer, closing the previously
......@@ -91,7 +90,7 @@ public:
*
* @return The owned FILE pointer.
*/
FILE *get() throw();
FILE *get() const throw();
/**
* Releases the owned FILE pointer.
......
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