Ticket #4851 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Convenience method in AnalysisDataService

Reported by: Janik Zikovsky Owned by: Janik Zikovsky
Priority: trivial Milestone: Release 2.1
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Jose Borreguero

Description

Replace:

boost::dynamic_pointer_cast<EventWorkspace>(AnalysisDataService::Instance().retrieve("name"))

with the more readable

AnalysisDataService::Instance().retrieveWS<EventWorkspace>("name")

Change History

comment:1 Changed 9 years ago by Janik Zikovsky

  • Status changed from new to accepted
  • Summary changed from Convenien to Convenience method in AnalysisDataService

Refs #4851 convenience method on ADS

Changeset: c0efded18d0f0a9abff0c7d705afd9077106e6b3

Last edited 9 years ago by Janik Zikovsky (previous) (diff)

comment:2 Changed 9 years ago by Janik Zikovsky

Refs #4851: search/replace to make some code more readable

by using the ADS::retrieveWS<Type>() method.

Changeset: ec57eee8c74db4ec6ff2aaffc638546508171648

comment:3 Changed 9 years ago by Janik Zikovsky

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:4 Changed 8 years ago by Jose Borreguero

  • Status changed from verify to verifying
  • Tester set to Jose Borreguero

comment:5 Changed 8 years ago by Jose Borreguero

  • Status changed from verifying to closed

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5698

Note: See TracTickets for help on using tickets.