Ticket #4851 (closed: fixed)
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
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
Note: See
TracTickets for help on using
tickets.
Refs #4851 convenience method on ADS