| Index: webrtc/examples/peerconnection/client/main_wnd.cc
|
| diff --git a/webrtc/examples/peerconnection/client/main_wnd.cc b/webrtc/examples/peerconnection/client/main_wnd.cc
|
| index 30b12a85116eb3dc297fb2a7aee0b64221b2ad89..72f85b9eb2732df87496791b27f669ca5aab9303 100644
|
| --- a/webrtc/examples/peerconnection/client/main_wnd.cc
|
| +++ b/webrtc/examples/peerconnection/client/main_wnd.cc
|
| @@ -13,6 +13,7 @@
|
| #include <math.h>
|
|
|
| #include "webrtc/examples/peerconnection/client/defaults.h"
|
| +#include "webrtc/base/arraysize.h"
|
| #include "webrtc/base/common.h"
|
| #include "webrtc/base/logging.h"
|
|
|
| @@ -241,7 +242,7 @@ void MainWnd::OnPaint() {
|
|
|
| // Set the map mode so that the ratio will be maintained for us.
|
| HDC all_dc[] = { ps.hdc, dc_mem };
|
| - for (int i = 0; i < ARRAY_SIZE(all_dc); ++i) {
|
| + for (int i = 0; i < arraysize(all_dc); ++i) {
|
| SetMapMode(all_dc[i], MM_ISOTROPIC);
|
| SetWindowExtEx(all_dc[i], width, height, NULL);
|
| SetViewportExtEx(all_dc[i], rc.right, rc.bottom, NULL);
|
|
|