fix VC5 bustage, needed to add const qualifiers to GetWidgetView, ViewToWidget.

This commit is contained in:
beard%netscape.com 1999-11-14 03:53:51 +00:00
Родитель 9d01025470
Коммит 7b5640c230
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -2698,7 +2698,7 @@ void nsViewManager :: RestartTimer(void)
SetFrameRate(mTrueFrameRate);
}
nsIView* nsViewManager::GetWidgetView(nsIView *aView)
nsIView* nsViewManager::GetWidgetView(nsIView *aView) const
{
while (aView != nsnull) {
PRBool hasWidget;
@ -2710,7 +2710,7 @@ nsIView* nsViewManager::GetWidgetView(nsIView *aView)
return nsnull;
}
void nsViewManager::ViewToWidget(nsIView *aView, nsIView* aWidgetView, nsRect &aRect)
void nsViewManager::ViewToWidget(nsIView *aView, nsIView* aWidgetView, nsRect &aRect) const
{
while (aView != aWidgetView) {
nscoord x, y;

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

@ -167,13 +167,13 @@ private:
* Returns the nearest parent view with an attached widget. Can be the
* same view as passed-in.
*/
nsIView* GetWidgetView(nsIView *aView);
nsIView* GetWidgetView(nsIView *aView) const;
/**
* Transforms a rectangle from specified view's coordinate system to
* the first parent that has an attached widget.
*/
void ViewToWidget(nsIView *aView, nsIView* aWidgetView, nsRect &aRect);
void ViewToWidget(nsIView *aView, nsIView* aWidgetView, nsRect &aRect) const;
// void WidgetToView(nsIView* aView, nsRect &aWidgetRect);
private: