From e214a02b9ba50f8d10bfefb54e7e7d51037dc950 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 22 Sep 2007 05:03:56 +0000 Subject: [PATCH] From Andrew Chatham: Make File_read::View::data_ a const pointer. --- gold/fileread.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gold/fileread.h b/gold/fileread.h index f3ac753..59d84f6 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_; }; -- 2.7.4