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

Side by Side Diff: remoting/base/dispatch_win.h

Issue 824383002: replace COMPILE_ASSERT with static_assert in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | remoting/base/dispatch_win.h.pump » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file was GENERATED by command: 1 // This file was GENERATED by command:
2 // pump.py dispatch_win.h.pump 2 // pump.py dispatch_win.h.pump
3 // DO NOT EDIT BY HAND!!! 3 // DO NOT EDIT BY HAND!!!
4 4
5 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 5 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
6 // Use of this source code is governed by a BSD-style license that can be 6 // Use of this source code is governed by a BSD-style license that can be
7 // found in the LICENSE file. 7 // found in the LICENSE file.
8 8
9 #ifndef REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ 9 #ifndef REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_
10 #define REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ 10 #define REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void Swap(VARIANT* other) { 88 void Swap(VARIANT* other) {
89 VARIANT temp = *other; 89 VARIANT temp = *other;
90 *other = *this; 90 *other = *this;
91 *static_cast<VARIANTARG*>(this) = temp; 91 *static_cast<VARIANTARG*>(this) = temp;
92 } 92 }
93 93
94 DISALLOW_COPY_AND_ASSIGN(ScopedVariantArg); 94 DISALLOW_COPY_AND_ASSIGN(ScopedVariantArg);
95 }; 95 };
96 96
97 // Make sure the layouts of |VARIANTARG| and |ScopedVariantArg| are identical. 97 // Make sure the layouts of |VARIANTARG| and |ScopedVariantArg| are identical.
98 COMPILE_ASSERT(sizeof(ScopedVariantArg) == sizeof(VARIANTARG), 98 static_assert(sizeof(ScopedVariantArg) == sizeof(VARIANTARG),
99 scoped_variant_arg_should_not_add_data_members); 99 "scoped variant arg should not add data members");
100 100
101 } // namespace internal 101 } // namespace internal
102 102
103 // Invoke() is a convenience wrapper for IDispatch::Invoke. It takes care of 103 // Invoke() is a convenience wrapper for IDispatch::Invoke. It takes care of
104 // calling the desired method by its ID and implements logic for passing 104 // calling the desired method by its ID and implements logic for passing
105 // a variable number of in/out parameters to the called method. 105 // a variable number of in/out parameters to the called method.
106 // 106 //
107 // The calling convention is: 107 // The calling convention is:
108 // - [in] parameters are passsed as a constant reference or by value. 108 // - [in] parameters are passsed as a constant reference or by value.
109 // - [out] and [in] [out] parameters are passed by pointer. The pointed value 109 // - [out] and [in] [out] parameters are passed by pointer. The pointed value
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 } 636 }
637 637
638 return S_OK; 638 return S_OK;
639 } 639 }
640 640
641 } // namespace dispatch 641 } // namespace dispatch
642 642
643 } // namespace remoting 643 } // namespace remoting
644 644
645 #endif // REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ 645 #endif // REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/dispatch_win.h.pump » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698