Add const qualifiers where it possible
diff --git a/double-conversion/fixed-dtoa.cc b/double-conversion/fixed-dtoa.cc
index aef65fd..78378c5 100644
--- a/double-conversion/fixed-dtoa.cc
+++ b/double-conversion/fixed-dtoa.cc
@@ -98,7 +98,7 @@
return high_bits_ == 0 && low_bits_ == 0;
}
- int BitAt(int position) {
+ int BitAt(int position) const {
if (position >= 64) {
return static_cast<int>(high_bits_ >> (position - 64)) & 1;
} else {
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
index cb87076..2b65151 100644
--- a/test/cctest/cctest.h
+++ b/test/cctest/cctest.h
@@ -124,10 +124,10 @@
static int test_count();
static CcTest* last() { return last_; }
CcTest* prev() { return prev_; }
- const char* file() { return file_; }
- const char* name() { return name_; }
- const char* dependency() { return dependency_; }
- bool enabled() { return enabled_; }
+ const char* file() const { return file_; }
+ const char* name() const { return name_; }
+ const char* dependency() const { return dependency_; }
+ bool enabled() const { return enabled_; }
private:
TestFunction* callback_;
const char* file_;