зеркало из https://github.com/mozilla/pjs.git
Fixing compiler warnings and possible UMR's.
This commit is contained in:
Родитель
5bc7a8e1a2
Коммит
c968fa9368
|
@ -1044,10 +1044,13 @@ NS_IMETHODIMP GlobalWindowImpl::SetPageYOffset(PRInt32 aPageYOffset)
|
|||
|
||||
NS_IMETHODIMP GlobalWindowImpl::GetScrollX(PRInt32* aScrollX)
|
||||
{
|
||||
nsresult result;
|
||||
NS_ENSURE_ARG_POINTER(aScrollX);
|
||||
nsresult result = NS_OK;
|
||||
nsCOMPtr<nsIScrollableView> view;
|
||||
float p2t, t2p;
|
||||
|
||||
*aScrollX = 0;
|
||||
|
||||
FlushPendingNotifications();
|
||||
|
||||
GetScrollInfo(getter_AddRefs(view), &p2t, &t2p);
|
||||
|
@ -1063,10 +1066,13 @@ NS_IMETHODIMP GlobalWindowImpl::GetScrollX(PRInt32* aScrollX)
|
|||
|
||||
NS_IMETHODIMP GlobalWindowImpl::GetScrollY(PRInt32* aScrollY)
|
||||
{
|
||||
nsresult result;
|
||||
NS_ENSURE_ARG_POINTER(aScrollY);
|
||||
nsresult result = NS_OK;
|
||||
nsCOMPtr<nsIScrollableView> view;
|
||||
float p2t, t2p;
|
||||
|
||||
*aScrollY = 0;
|
||||
|
||||
FlushPendingNotifications();
|
||||
|
||||
GetScrollInfo(getter_AddRefs(view), &p2t, &t2p);
|
||||
|
@ -1619,7 +1625,7 @@ GlobalWindowImpl::UpdateCommands(const nsString& anAction)
|
|||
|
||||
NS_IMETHODIMP GlobalWindowImpl::Escape(const nsString& aStr, nsString& aReturn)
|
||||
{
|
||||
nsresult result;
|
||||
nsresult result = NS_OK;
|
||||
nsCOMPtr<nsIUnicodeEncoder> encoder;
|
||||
nsAutoString charset;
|
||||
|
||||
|
@ -1687,7 +1693,7 @@ NS_IMETHODIMP GlobalWindowImpl::Escape(const nsString& aStr, nsString& aReturn)
|
|||
|
||||
NS_IMETHODIMP GlobalWindowImpl::Unescape(const nsString& aStr, nsString& aReturn)
|
||||
{
|
||||
nsresult result;
|
||||
nsresult result = NS_OK;
|
||||
nsCOMPtr<nsIUnicodeDecoder> decoder;
|
||||
nsAutoString charset;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче