Comply with the C++ standard's (silly?) rule that converting an rvalue to a const reference requires that the copy constructor be accessible. b=230118 r=bbaetz sr=roc

This commit is contained in:
dbaron%dbaron.org 2004-01-08 21:06:19 +00:00
Родитель 04decac5db
Коммит 63adfad622
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -2879,7 +2879,8 @@ PRBool nsViewManager::CanScrollWithBitBlt(nsView* aView)
// code still does the right thing. Yay for the display list based
// approach!)
OptimizeDisplayList(&displayList, nsRegion(r), finalTransparentRect, opaqueRegion, PR_TRUE);
nsRegion region(r);
OptimizeDisplayList(&displayList, region, finalTransparentRect, opaqueRegion, PR_TRUE);
PRBool anyUnscrolledViews = PR_FALSE;
PRBool anyUnblittableViews = PR_FALSE;
@ -3285,7 +3286,8 @@ NS_IMETHODIMP nsViewManager::Display(nsIView* aView, nscoord aX, nscoord aY, con
// Paint the view. The clipping rect was set above set don't clip again.
//aView->Paint(*localcx, trect, NS_VIEW_FLAG_CLIP_SET, result);
RenderViews(view, *localcx, nsRegion(trect), PR_FALSE);
nsRegion region(trect);
RenderViews(view, *localcx, region, PR_FALSE);
NS_RELEASE(localcx);