Skip to content

Commit

Permalink
Convert getActiveSessions to a vector. Refs #9112.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Mar 7, 2014
1 parent 92a82c0 commit 8d56457
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/inc/MantidAPI/CatalogManager.h
Expand Up @@ -44,7 +44,7 @@ namespace Mantid
/// Destroy a specific catalog (if session provided), otherwise destroys all active catalogs.
void destroyCatalog(const std::string &sessionID);
/// Obtains a list of the current active catalog sessions.
std::list<CatalogSession_sptr> getActiveSessions();
std::vector<CatalogSession_sptr> getActiveSessions();

private:
/// These methods are required to create a singleton.
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/API/src/CatalogManager.cpp
Expand Up @@ -89,9 +89,9 @@ namespace Mantid
* Obtains a list of the current active catalog sessions.
* @return A list of active catalog sessions.
*/
std::list<CatalogSession_sptr> CatalogManagerImpl::getActiveSessions()
std::vector<CatalogSession_sptr> CatalogManagerImpl::getActiveSessions()
{
std::list<CatalogSession_sptr> sessions;
std::vector<CatalogSession_sptr> sessions;

for(auto item = m_activeCatalogs.begin(); item != m_activeCatalogs.end(); ++item)
{
Expand Down

0 comments on commit 8d56457

Please sign in to comment.