From 3e1c511db7a43801963db679c167e2f1c6f66345 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Wed, 2 Jun 1999 00:07:54 +0000 Subject: [PATCH] stop using [] operator on nsISupportsArray - going away for scriptability. git-svn-id: svn://10.0.0.236/trunk@33366 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/threads/nsThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/xpcom/threads/nsThread.cpp b/mozilla/xpcom/threads/nsThread.cpp index c9878dde916..11681831862 100644 --- a/mozilla/xpcom/threads/nsThread.cpp +++ b/mozilla/xpcom/threads/nsThread.cpp @@ -356,7 +356,7 @@ nsThreadPool::GetRequest() if (NS_SUCCEEDED(rv)) { NS_ASSERTION((NS_SUCCEEDED(mRequests->Count(&cnt)) && cnt > 0), "request queue out of sync"); - request = (nsIRunnable*)(*mRequests)[0]; + request = (nsIRunnable*)mRequests->ElementAt(0); NS_ASSERTION(request != nsnull, "null runnable"); PRBool removed = mRequests->RemoveElementAt(0); @@ -403,7 +403,7 @@ nsThreadPool::Shutdown() rv = mThreads->Count(&count); NS_ASSERTION(NS_SUCCEEDED(rv), "Count failed"); for (i = 0; i < count; i++) { - nsIThread* thread = (nsIThread*)((*mThreads)[0]); + nsIThread* thread = (nsIThread*)(mThreads->ElementAt(0)); // we don't care about the error from Interrupt, because the // thread may have already terminated its event loop