From f4acbf0b6d5b80dc54ce12f2b890b9950bf4a9ef Mon Sep 17 00:00:00 2001 From: Jay Rainey Date: Fri, 7 Feb 2014 16:05:19 +0000 Subject: [PATCH] Removed namespaces and un-used property. Refs #8900. --- .../ICat/inc/MantidICat/CatalogMyDataSearch.h | 3 +-- .../Framework/ICat/src/CatalogMyDataSearch.cpp | 14 +++++--------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Code/Mantid/Framework/ICat/inc/MantidICat/CatalogMyDataSearch.h b/Code/Mantid/Framework/ICat/inc/MantidICat/CatalogMyDataSearch.h index a5627c6be446..c8f792f796c4 100644 --- a/Code/Mantid/Framework/ICat/inc/MantidICat/CatalogMyDataSearch.h +++ b/Code/Mantid/Framework/ICat/inc/MantidICat/CatalogMyDataSearch.h @@ -14,8 +14,7 @@ namespace Mantid Required Properties: @author Sofia Antony, ISIS Rutherford Appleton Laboratory diff --git a/Code/Mantid/Framework/ICat/src/CatalogMyDataSearch.cpp b/Code/Mantid/Framework/ICat/src/CatalogMyDataSearch.cpp index 4dc2ac1ba6db..2da62966f9f3 100644 --- a/Code/Mantid/Framework/ICat/src/CatalogMyDataSearch.cpp +++ b/Code/Mantid/Framework/ICat/src/CatalogMyDataSearch.cpp @@ -11,31 +11,27 @@ namespace Mantid { namespace ICat { - using namespace Kernel; - using namespace API; - DECLARE_ALGORITHM(CatalogMyDataSearch) /// Sets documentation strings for this algorithm void CatalogMyDataSearch::initDocs() { - this->setWikiSummary("This algorithm loads the logged in users' investigations."); - this->setOptionalMessage("This algorithm loads the logged in users' investigations."); + this->setWikiSummary("This algorithm loads the logged in users' investigations into a workspace."); + this->setOptionalMessage("This algorithm loads the logged in users' investigations into a workspace."); } /// Initialisation method. void CatalogMyDataSearch::init() { - declareProperty(new WorkspaceProperty ("OutputWorkspace", "", Direction::Output), - "The name of the workspace to store the result of MyData search "); - declareProperty("IsValid",true,"Boolean option used to check the validity of login session", Direction::Output); + declareProperty(new API::WorkspaceProperty ("OutputWorkspace", "", Kernel::Direction::Output), + "The name of the workspace to store the search results."); } /// Execution method. void CatalogMyDataSearch::exec() { // Create and use the catalog the user has specified in Facilities.xml - auto outputws = WorkspaceFactory::Instance().createTable("TableWorkspace"); + auto outputws = API::WorkspaceFactory::Instance().createTable("TableWorkspace"); CatalogAlgorithmHelper().createCatalog()->myData(outputws); setProperty("OutputWorkspace",outputws); }