diff options
-rw-r--r-- | base/file_util.cc | 2 | ||||
-rw-r--r-- | base/file_util.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index c9661e7..7cf67dd2 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -341,7 +341,7 @@ bool MemoryMappedFile::Initialize(base::PlatformFile file) { return true; } -bool MemoryMappedFile::IsValid() { +bool MemoryMappedFile::IsValid() const { return data_ != NULL; } diff --git a/base/file_util.h b/base/file_util.h index ab6906d..d89fa71 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -510,7 +510,7 @@ class MemoryMappedFile { size_t length() const { return length_; } // Is file_ a valid file handle that points to an open, memory mapped file? - bool IsValid(); + bool IsValid() const; private: // Open the given file and pass it to MapFileToMemoryInternal(). |