From: Christoph Egger <Christoph.Egger@fau.de>
Date: Fri, 20 Feb 2015 17:28:25 +0000 (+0100)
Subject: constify function in Function
X-Git-Tag: v0.1~92
X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=73fbbe0b8d199d2ee85e2cfaf4304689f4d6e6eb;p=frida%2Ffrida.git

constify function in Function
---

diff --git a/src/core/Function.hxx b/src/core/Function.hxx
index 39d3f51..aebfe8f 100644
--- a/src/core/Function.hxx
+++ b/src/core/Function.hxx
@@ -31,7 +31,7 @@ public:
 		_blocks.insert(std::make_pair(block->getStartAddress(), block));
 	}
 
-	std::map<uint64_t, BasicBlock*>& blocks() {
+	const std::map<uint64_t, BasicBlock*>& blocks() {
 		return _blocks;
 	}
 private: