зеркало из https://github.com/mozilla/gecko-dev.git
Bug 825079 - Fix -Wint-to-pointer-cast warnings and remove trailing whitespace in nsBaseWidget.cpp. r=roc.
This commit is contained in:
Родитель
d3e4514e9d
Коммит
3397723e47
|
@ -562,7 +562,6 @@ nscolor nsBaseWidget::GetForegroundColor(void)
|
|||
return mForeground;
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Set the foreground color
|
||||
|
@ -574,7 +573,6 @@ NS_METHOD nsBaseWidget::SetForegroundColor(const nscolor &aColor)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Get the background color
|
||||
|
@ -1634,12 +1632,12 @@ nsBaseWidget::debug_DumpEvent(FILE * aFileOut,
|
|||
NS_LossyConvertUTF16toASCII tempString(debug_GuiEventToString(aGuiEvent).get());
|
||||
|
||||
fprintf(aFileOut,
|
||||
"%4d %-26s widget=%-8p name=%-12s id=%-8p refpt=%d,%d\n",
|
||||
"%4d %-26s widget=%-8p name=%-12s id=0x%-6x refpt=%d,%d\n",
|
||||
_GetPrintCount(),
|
||||
tempString.get(),
|
||||
(void *) aWidget,
|
||||
aWidgetName.get(),
|
||||
(void *) (aWindowID ? aWindowID : 0x0),
|
||||
aWindowID,
|
||||
aGuiEvent->refPoint.x,
|
||||
aGuiEvent->refPoint.y);
|
||||
}
|
||||
|
@ -1659,11 +1657,11 @@ nsBaseWidget::debug_DumpPaintEvent(FILE * aFileOut,
|
|||
|
||||
nsIntRect rect = aRegion.GetBounds();
|
||||
fprintf(aFileOut,
|
||||
"%4d PAINT widget=%p name=%-12s id=%-8p bounds-rect=%3d,%-3d %3d,%-3d",
|
||||
"%4d PAINT widget=%p name=%-12s id=0x%-6x bounds-rect=%3d,%-3d %3d,%-3d",
|
||||
_GetPrintCount(),
|
||||
(void *) aWidget,
|
||||
aWidgetName.get(),
|
||||
(void *) aWindowID,
|
||||
aWindowID,
|
||||
rect.x, rect.y, rect.width, rect.height
|
||||
);
|
||||
|
||||
|
@ -1684,11 +1682,11 @@ nsBaseWidget::debug_DumpInvalidate(FILE * aFileOut,
|
|||
NS_ASSERTION(nullptr != aWidget,"cmon, the widget is null");
|
||||
|
||||
fprintf(aFileOut,
|
||||
"%4d Invalidate widget=%p name=%-12s id=%-8p",
|
||||
"%4d Invalidate widget=%p name=%-12s id=0x%-6x",
|
||||
_GetPrintCount(),
|
||||
(void *) aWidget,
|
||||
aWidgetName.get(),
|
||||
(void *) aWindowID);
|
||||
aWindowID);
|
||||
|
||||
if (aRect)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче