Simplify command line arguments
Change-Id: I9d6902b0c447fd8fbe5600fd36139791b2ceefb7
diff --git a/src/image_writer.h b/src/image_writer.h
index 8c4b308..fda33fe 100644
--- a/src/image_writer.h
+++ b/src/image_writer.h
@@ -62,12 +62,12 @@
object->monitor_ = 0;
}
- bool InSourceSpace(const Object* object) {
+ bool InSourceSpace(const Object* object) const {
DCHECK(source_space_ != NULL);
const byte* o = reinterpret_cast<const byte*>(object);
return (o >= source_space_->GetBase() && o < source_space_->GetLimit());
}
- Object* GetImageAddress(const Object* object) {
+ Object* GetImageAddress(const Object* object) const {
if (object == NULL) {
return NULL;
}
@@ -77,7 +77,7 @@
}
return reinterpret_cast<Object*>(image_base_ + GetImageOffset(object));
}
- Object* GetLocalAddress(const Object* object) {
+ Object* GetLocalAddress(const Object* object) const {
size_t offset = GetImageOffset(object);
byte* dst = image_->GetAddress() + offset;
return reinterpret_cast<Object*>(dst);