Skip to content

Commit

Permalink
Replaced references to protected members with function calls. Re #4137
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Nov 28, 2011
1 parent 3a293c4 commit 7b9b114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/DataObjects/src/PeaksWorkspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ namespace DataObjects
for (size_t i=0; i < peaks.size(); i++)
{
Peak p = peaks[i];
detectorID.push_back( p.m_DetectorID ); //Protected member of Peak.h not accessible here
H.push_back( p.m_H ); //Protected member of Peak.h not accessible here
detectorID.push_back( p.getDetectorID() );
H.push_back( p.getH() );
// etc.
}
file->writeData("detector_id", detectorID);
Expand Down

1 comment on commit 7b9b114

@KarlPalmen
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Janik for the code. I have been able to make it compilable.

Please sign in to comment.