removed redundant get() calls

This commit is contained in:
Jack Andersen
2015-08-05 11:45:25 -10:00
parent ebb5c0743d
commit 28ed4ba6af
4 changed files with 13 additions and 13 deletions

View File

@@ -227,11 +227,11 @@ protected:
std::vector<std::unique_ptr<IPartition>> m_partitions;
public:
DiscBase(std::unique_ptr<IDiscIO>&& dio)
: m_discIO(std::move(dio)), m_header(*m_discIO.get()) {}
: m_discIO(std::move(dio)), m_header(*m_discIO) {}
virtual bool commit()=0;
inline const Header& getHeader() const {return m_header;}
inline const IDiscIO& getDiscIO() const {return *m_discIO.get();}
inline const IDiscIO& getDiscIO() const {return *m_discIO;}
inline IPartition* getDataPartition()
{
for (const std::unique_ptr<IPartition>& part : m_partitions)