summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-07-01 12:17:01 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-01 19:17:32 +0000
commit475b2e8fdde79348aaef7ffab71a283f4171a733 (patch)
tree5f65f45dfe7ec66ad0134e87e9f8b8903c5d7eeb /printing
parentf2e9443673c96bdc03319daf3ce7879156c24ad8 (diff)
downloadchromium_src-475b2e8fdde79348aaef7ffab71a283f4171a733.zip
chromium_src-475b2e8fdde79348aaef7ffab71a283f4171a733.tar.gz
chromium_src-475b2e8fdde79348aaef7ffab71a283f4171a733.tar.bz2
Fix some clang warnings with -Wmissing-braces in printing.
Clang warns if there are missing braces around a subobject initializer. The most common idiom that triggers this is: STRUCT s = {0}; if the first field of STRUCT is itself a struct. This can be more simply written as: STRUCT s = {}; which also prevents the warning from firing. BUG=505297 Review URL: https://codereview.chromium.org/1221643016 Cr-Commit-Position: refs/heads/master@{#337086}
Diffstat (limited to 'printing')
-rw-r--r--printing/backend/win_helper.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/printing/backend/win_helper.cc b/printing/backend/win_helper.cc
index 914dacb..ac74547 100644
--- a/printing/backend/win_helper.cc
+++ b/printing/backend/win_helper.cc
@@ -91,8 +91,8 @@ HRESULT StreamFromPrintTicket(const std::string& print_ticket,
base::checked_cast<ULONG>(print_ticket.length()),
&bytes_written);
DCHECK(bytes_written == print_ticket.length());
- LARGE_INTEGER pos = {0};
- ULARGE_INTEGER new_pos = {0};
+ LARGE_INTEGER pos = {};
+ ULARGE_INTEGER new_pos = {};
(*stream)->Seek(pos, STREAM_SEEK_SET, &new_pos);
return S_OK;
}