Browse Source

[2850] constify

JINMEI Tatuya 12 years ago
parent
commit
bd7e56727b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/datasrc/memory/zone_table_segment_mapped.cc

+ 1 - 1
src/lib/datasrc/memory/zone_table_segment_mapped.cc

@@ -121,7 +121,7 @@ ZoneTableSegmentMapped::reset(MemorySegmentOpenMode mode,
             // closed. Check that its checksum is consistent.
             // closed. Check that its checksum is consistent.
             uint32_t* checksum = static_cast<uint32_t*>
             uint32_t* checksum = static_cast<uint32_t*>
                 (segment->getNamedAddress("zone_table_checksum"));
                 (segment->getNamedAddress("zone_table_checksum"));
-            uint32_t saved_checksum = *checksum;
+            const uint32_t saved_checksum = *checksum;
             // First, clear the checksum so that getCheckSum() returns
             // First, clear the checksum so that getCheckSum() returns
             // a consistent value.
             // a consistent value.
             *checksum = 0;
             *checksum = 0;