Bug 1005619 - Fixed parse error on GCC.
authorJacek Caban <jacek@codeweavers.com>
Tue, 03 Jun 2014 13:25:21 +0200
changeset 205559 781f4aff37694a9ff6c0bb6024bac798e765a5d2
parent 205558 66524f499e1759186c294ace1ccac0693db792de
child 205560 d854774124a691c6ad1f0134386a913ef790cca7
push id3741
push userasasaki@mozilla.com
push dateMon, 21 Jul 2014 20:25:18 +0000
treeherdermozilla-beta@4d6f46f5af68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1005619
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1005619 - Fixed parse error on GCC.
widget/windows/nsWindow.cpp
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -1941,25 +1941,25 @@ NS_METHOD nsWindow::GetRestoredBounds(ns
 {
   if (SizeMode() == nsSizeMode_Normal) {
     return GetScreenBounds(aRect);
   }
   if (!mWnd) {
     return NS_ERROR_FAILURE;
   }
 
-  WINDOWPLACEMENT pl = { sizeof WINDOWPLACEMENT, };
+  WINDOWPLACEMENT pl = { sizeof(WINDOWPLACEMENT) };
   VERIFY(::GetWindowPlacement(mWnd, &pl));
   const RECT& r = pl.rcNormalPosition;
 
   HMONITOR monitor = ::MonitorFromWindow(mWnd, MONITOR_DEFAULTTONULL);
   if (!monitor) {
     return NS_ERROR_FAILURE;
   }
-  MONITORINFO mi = { sizeof MONITORINFO, };
+  MONITORINFO mi = { sizeof(MONITORINFO) };
   VERIFY(::GetMonitorInfo(monitor, &mi));
 
   aRect.SetRect(r.left, r.top, r.right - r.left, r.bottom - r.top);
   aRect.MoveBy(mi.rcWork.left - mi.rcMonitor.left,
                mi.rcWork.top - mi.rcMonitor.top);
   return NS_OK;
 }