aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-22 05:03:56 +0000
committerIan Lance Taylor <iant@google.com>2007-09-22 05:03:56 +0000
commite214a02b9ba50f8d10bfefb54e7e7d51037dc950 (patch)
tree4e346e62566f1eeddb7931567b0f7d95fbb854d1 /gold/fileread.h
parentbfd58944a64b0997a310b95fbe0423338961e71c (diff)
downloadfsf-binutils-gdb-e214a02b9ba50f8d10bfefb54e7e7d51037dc950.zip
fsf-binutils-gdb-e214a02b9ba50f8d10bfefb54e7e7d51037dc950.tar.gz
fsf-binutils-gdb-e214a02b9ba50f8d10bfefb54e7e7d51037dc950.tar.bz2
From Andrew Chatham: Make File_read::View::data_ a const pointer.
Diffstat (limited to 'gold/fileread.h')
-rw-r--r--gold/fileread.h6
1 files 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_;
};