Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2545)

Unified Diff: base/files/memory_mapped_file.cc

Issue 428883012: Add LINKER_INITIALIZER marker to MemoryMappedFile::Region::kWholeFile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/files/memory_mapped_file.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/memory_mapped_file.cc
diff --git a/base/files/memory_mapped_file.cc b/base/files/memory_mapped_file.cc
index e9656495844212d1fea11c16cabdca9118e1a540..745a5ff1f4524f944823c244249836b6b52bf9a3 100644
--- a/base/files/memory_mapped_file.cc
+++ b/base/files/memory_mapped_file.cc
@@ -10,9 +10,10 @@
namespace base {
-const MemoryMappedFile::Region MemoryMappedFile::Region::kWholeFile;
+const MemoryMappedFile::Region MemoryMappedFile::Region::kWholeFile(
+ base::LINKER_INITIALIZED);
-MemoryMappedFile::Region::Region() : offset(0), size(0) {
+MemoryMappedFile::Region::Region(base::LinkerInitialized) : offset(0), size(0) {
}
MemoryMappedFile::Region::Region(int64 offset, int64 size)
« no previous file with comments | « base/files/memory_mapped_file.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698