Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
This commit is contained in:
@@ -44,6 +44,10 @@
|
||||
#endif
|
||||
|
||||
#include "mozilla/plugins/PluginModuleChild.h"
|
||||
|
||||
/* This must occur *after* plugins/PluginModuleChild.h to avoid typedefs conflicts. */
|
||||
#include "mozilla/Util.h"
|
||||
|
||||
#include "mozilla/ipc/SyncChannel.h"
|
||||
|
||||
#ifdef MOZ_WIDGET_GTK2
|
||||
@@ -81,6 +85,7 @@
|
||||
#include "PluginUtilsOSX.h"
|
||||
#endif
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::plugins;
|
||||
using mozilla::dom::CrashReporterChild;
|
||||
using mozilla::dom::PCrashReporterChild;
|
||||
@@ -1903,7 +1908,7 @@ PMCGetWindowInfoHook(HWND hWnd, PWINDOWINFO pwi)
|
||||
|
||||
if (!sBrowserHwnd) {
|
||||
PRUnichar szClass[20];
|
||||
if (GetClassNameW(hWnd, szClass, NS_ARRAY_LENGTH(szClass)) &&
|
||||
if (GetClassNameW(hWnd, szClass, ArrayLength(szClass)) &&
|
||||
!wcscmp(szClass, kMozillaWindowClass)) {
|
||||
sBrowserHwnd = hWnd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user