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

Unified Diff: base/memory/shared_memory_win.cc

Issue 1210013007: clang/win: Fix warnings to prepare for building without -Wno-reorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clang-unsequenced
Patch Set: Created 5 years, 6 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/file_enumerator_win.cc ('k') | base/synchronization/condition_variable_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/shared_memory_win.cc
diff --git a/base/memory/shared_memory_win.cc b/base/memory/shared_memory_win.cc
index f58116adf8267ac4cea86a3920ac8de2ccc3845a..5f706fe648598642584903f39a5aa40786acc88d 100644
--- a/base/memory/shared_memory_win.cc
+++ b/base/memory/shared_memory_win.cc
@@ -29,37 +29,37 @@ namespace base {
SharedMemory::SharedMemory()
: mapped_file_(NULL),
+ mapped_size_(0),
memory_(NULL),
read_only_(false),
- mapped_size_(0),
requested_size_(0) {
}
SharedMemory::SharedMemory(const std::wstring& name)
- : mapped_file_(NULL),
+ : name_(name),
+ mapped_file_(NULL),
+ mapped_size_(0),
memory_(NULL),
read_only_(false),
- requested_size_(0),
- mapped_size_(0),
- name_(name) {
+ requested_size_(0) {
}
SharedMemory::SharedMemory(const SharedMemoryHandle& handle, bool read_only)
: mapped_file_(handle),
+ mapped_size_(0),
memory_(NULL),
read_only_(read_only),
- requested_size_(0),
- mapped_size_(0) {
+ requested_size_(0) {
}
SharedMemory::SharedMemory(const SharedMemoryHandle& handle,
bool read_only,
ProcessHandle process)
: mapped_file_(NULL),
+ mapped_size_(0),
memory_(NULL),
read_only_(read_only),
- requested_size_(0),
- mapped_size_(0) {
+ requested_size_(0) {
::DuplicateHandle(process, handle,
GetCurrentProcess(), &mapped_file_,
read_only_ ? FILE_MAP_READ : FILE_MAP_READ |
« no previous file with comments | « base/files/file_enumerator_win.cc ('k') | base/synchronization/condition_variable_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698