From a975e38fd3fc9304bc7ce34f809213ab20e008a3 Mon Sep 17 00:00:00 2001
From: Samuel Jackson <samuel.jackson@stfc.ac.uk>
Date: Mon, 2 Jun 2014 13:17:03 +0100
Subject: [PATCH] Refs #9404 Swap to using new wiki summary method.

---
 .../inc/MantidAlgorithms/RemoveWorkspaceHistory.h        | 2 +-
 .../Framework/Algorithms/src/RemoveWorkspaceHistory.cpp  | 9 ++-------
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/Code/Mantid/Framework/Algorithms/inc/MantidAlgorithms/RemoveWorkspaceHistory.h b/Code/Mantid/Framework/Algorithms/inc/MantidAlgorithms/RemoveWorkspaceHistory.h
index 1495fbd67bb..18d3af1bca6 100644
--- a/Code/Mantid/Framework/Algorithms/inc/MantidAlgorithms/RemoveWorkspaceHistory.h
+++ b/Code/Mantid/Framework/Algorithms/inc/MantidAlgorithms/RemoveWorkspaceHistory.h
@@ -40,11 +40,11 @@ namespace Algorithms
     virtual ~RemoveWorkspaceHistory();
     
     virtual const std::string name() const;
+    virtual const std::string summary() const;
     virtual int version() const;
     virtual const std::string category() const;
 
   private:
-    virtual void initDocs();
     void init();
     void exec();
 
diff --git a/Code/Mantid/Framework/Algorithms/src/RemoveWorkspaceHistory.cpp b/Code/Mantid/Framework/Algorithms/src/RemoveWorkspaceHistory.cpp
index 2198934e437..016e7bb6c90 100644
--- a/Code/Mantid/Framework/Algorithms/src/RemoveWorkspaceHistory.cpp
+++ b/Code/Mantid/Framework/Algorithms/src/RemoveWorkspaceHistory.cpp
@@ -44,13 +44,8 @@ namespace Algorithms
   /// Algorithm's category for identification. @see Algorithm::category
   const std::string RemoveWorkspaceHistory::category() const { return "Utility";}
 
-  //----------------------------------------------------------------------------------------------
-  /// Sets documentation strings for this algorithm
-  void RemoveWorkspaceHistory::initDocs()
-  {
-    this->setWikiSummary("Removes all algorithm history records from a given workspace.");
-    this->setOptionalMessage("Removes all algorithm history records from a given workspace.");
-  }
+  /// Algorithm's summary for identification. @see Algorithm::summary
+  const std::string RemoveWorkspaceHistory::summary() const { "Removes all algorithm history records from a given workspace."; };
 
   //----------------------------------------------------------------------------------------------
   /** Initialize the algorithm's properties.
-- 
GitLab