From: Ian Lance Taylor Date: Sat, 22 Sep 2007 05:03:56 +0000 (+0000) Subject: From Andrew Chatham: Make File_read::View::data_ a const pointer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e214a02b9ba50f8d10bfefb54e7e7d51037dc950;p=binutils-gdb.git From Andrew Chatham: Make File_read::View::data_ a const pointer. --- diff --git a/gold/fileread.h b/gold/fileread.h index f3ac753b140..59d84f62912 100644 --- a/gold/fileread.h +++ b/gold/fileread.h @@ -88,7 +88,7 @@ class File_read class View { public: - View(off_t start, off_t size, unsigned char* data) + View(off_t start, off_t size, const unsigned char* data) : start_(start), size_(size), data_(data), lock_count_(0) { } @@ -102,7 +102,7 @@ class File_read size() const { return this->size_; } - unsigned char* + const unsigned char* data() const { return this->data_; } @@ -121,7 +121,7 @@ class File_read off_t start_; off_t size_; - unsigned char* data_; + const unsigned char* data_; int lock_count_; };