Skip to content

Commit

Permalink
Re #6198. Fix last use of mapping method in Framework.
Browse files Browse the repository at this point in the history
We're relying on the move assignment operator here for efficiency, so
things will be a little slower on the Mac until it gets C++11 libs.
But we're not leaking the thing like we were before.
  • Loading branch information
RussellTaylor authored and gesnerpassos committed Sep 30, 2013
1 parent 8a44c33 commit 14b9d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace Mantid

bool m_workspaceInitialized;
std::string m_wsName;
detid2index_map * m_indexMap; // maps pixel id's to workspace indexes
detid2index_map m_indexMap; // maps pixel id's to workspace indexes

// We need these 2 strings to initialize m_buffer
std::string m_instrumentName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1179,8 +1179,8 @@ namespace LiveData
{
// It'd be nice to use operator[], but we might end up inserting a value....
// Have to use find() instead.
detid2index_map::iterator it = m_indexMap->find( pixelId);
if (it != m_indexMap->end())
detid2index_map::iterator it = m_indexMap.find( pixelId);
if (it != m_indexMap.end())
{
std::size_t workspaceIndex = it->second;
Mantid::DataObjects::TofEvent event( tof, pulseTime);
Expand Down

0 comments on commit 14b9d0b

Please sign in to comment.