Skip to content

Commit

Permalink
Remove implementation from methods. Refs #9026.
Browse files Browse the repository at this point in the history
- Update add to be const correct.
  • Loading branch information
jawrainey committed Feb 24, 2014
1 parent ec10422 commit b6a48e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Expand Up @@ -40,7 +40,7 @@ namespace Mantid
/// Destructor
~CompositeCatalog();
/// Adds a catalog to the list of catalogs (m_catalogs)
void add(API::ICatalog_sptr catalog);
void add(const API::ICatalog_sptr catalog);

/// Log the user into the catalog system.
virtual void login(const std::string& username,const std::string& password,const std::string& endpoint);
Expand Down
12 changes: 1 addition & 11 deletions Code/Mantid/Framework/ICat/src/CompositeCatalog.cpp
Expand Up @@ -18,7 +18,7 @@ namespace Mantid
* Add a catalog to the catalog container.
* @param catalog :: The catalog to add to the container.
*/
void CompositeCatalog::add(API::ICatalog_sptr catalog)
void CompositeCatalog::add(const API::ICatalog_sptr catalog)
{
m_catalogs.push_back(catalog);
}
Expand Down Expand Up @@ -160,10 +160,6 @@ namespace Mantid
*/
void CompositeCatalog::getDownloadURL(const long long& fileID,std::string& url)
{
for(auto catalog = m_catalogs.begin(); catalog != m_catalogs.end(); ++catalog)
{
(*catalog)->getDownloadURL(fileID, url);
}
}

/**
Expand All @@ -176,12 +172,6 @@ namespace Mantid
const std::string CompositeCatalog::getUploadURL(const std::string &investigationID,
const std::string &createFileName, const std::string &dataFileDescription)
{
std::string uploadURL;
for(auto catalog = m_catalogs.begin(); catalog != m_catalogs.end(); ++catalog)
{
uploadURL = (*catalog)->getUploadURL(investigationID, createFileName, dataFileDescription);
}
return uploadURL;
}

/**
Expand Down

0 comments on commit b6a48e1

Please sign in to comment.