summaryrefslogtreecommitdiff
path: root/src/hir/crate_ptr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-25 17:35:00 +1100
committerJohn Hodge <tpg@mutabah.net>2016-12-25 17:35:00 +1100
commit69537686be13f6ff84ce79e84374351e943ab21b (patch)
treede4bef9b5ace623b59751447b9131046483d2388 /src/hir/crate_ptr.hpp
parent27b0292ca6828eed7e782a57ad4d641f0ebf7357 (diff)
parent753a2f44cc4c00b952cddae2ceed066ebb18a470 (diff)
downloadmrust-69537686be13f6ff84ce79e84374351e943ab21b.tar.gz
Merge branch 'master' of https://github.com/thepowersgang/mrustc
Diffstat (limited to 'src/hir/crate_ptr.hpp')
-rw-r--r--src/hir/crate_ptr.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir/crate_ptr.hpp b/src/hir/crate_ptr.hpp
index ad6f374e..c870b1ea 100644
--- a/src/hir/crate_ptr.hpp
+++ b/src/hir/crate_ptr.hpp
@@ -10,7 +10,7 @@ class Crate;
class CratePtr
{
Crate* m_ptr;
-
+
public:
CratePtr();
CratePtr(Crate c);
@@ -27,7 +27,7 @@ public:
return *this;
}
~CratePtr();
-
+
Crate& operator*() { return *m_ptr; }
const Crate& operator*() const { return *m_ptr; }
Crate* operator->() { return m_ptr; }