[SystemCSim] remove raw ptrs in HWAccessElement getter

Since the HwAccessElements are copied anyways, we could construct them via copy ellusion and RTO directly with a pass by value function and remove the raw ptr usage.

Signed-off-by: Benjamin Beichler <Benjamin.Beichler@uni-rostock.de>
Change-Id: I2415de9b1c48d85a57471d3d18ef8402266acb73
2 files changed