diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-06-23 19:35:41 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-06-29 20:01:19 -0700 |
commit | 1d07b560e90ae85033f8ed2093e4ce05fcfe2113 (patch) | |
tree | 12611f4504a037c67f69c1bb39e315951b4f10b2 /uui/source/cookiedg.cxx | |
parent | Revert patch to change .idl (diff) | |
download | core-1d07b560e90ae85033f8ed2093e4ce05fcfe2113.tar.gz core-1d07b560e90ae85033f8ed2093e4ce05fcfe2113.zip |
Replace List with std::vector< CntHTTPCookie* >
Signed-off-by: Joseph Powers <jpowers27@cox.net>
Diffstat (limited to 'uui/source/cookiedg.cxx')
-rw-r--r-- | uui/source/cookiedg.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/uui/source/cookiedg.cxx b/uui/source/cookiedg.cxx index 5c1652814aa3..75b15c5ed2dd 100644 --- a/uui/source/cookiedg.cxx +++ b/uui/source/cookiedg.cxx @@ -85,12 +85,12 @@ CookiesDialog::CookiesDialog( Window* pParent, aMsg.SearchAndReplaceAscii( "${HOST}", aObj.GetHost() ); aMsg.SearchAndReplaceAscii( "${PATH}", aObj.GetPath() ); String aTemplate( ResId( STR_COOKIES_RECV_COOKIES, *pResMgr ) ); - List& rList =mpCookieRequest->m_rCookieList; + CntHTTPCookieList_impl& rList =mpCookieRequest->m_rCookieList; String aPair, aCookie; - for ( sal_uInt16 i = (sal_uInt16)rList.Count(); i--; ) + for ( sal_uInt16 i = (sal_uInt16)rList.size(); i--; ) { - CntHTTPCookie* pCookie = (CntHTTPCookie*)rList.GetObject(i); + CntHTTPCookie* pCookie = rList[ i ]; if ( CNTHTTP_COOKIE_POLICY_INTERACTIVE == pCookie->m_nPolicy ) { @@ -121,11 +121,11 @@ short CookiesDialog::Execute() if ( maInFutureIgnoreBtn.IsChecked() ) nStatus = CNTHTTP_COOKIE_POLICY_BANNED; - List& rList = mpCookieRequest->m_rCookieList; + CntHTTPCookieList_impl& rList = mpCookieRequest->m_rCookieList; - for ( sal_uInt16 i = (sal_uInt16)rList.Count(); i--; ) + for ( sal_uInt16 i = (sal_uInt16)rList.size(); i--; ) { - sal_uInt16& rStatus = ( (CntHTTPCookie*)rList.GetObject(i) )->m_nPolicy; + sal_uInt16& rStatus = rList[ i ]->m_nPolicy; if ( rStatus == CNTHTTP_COOKIE_POLICY_INTERACTIVE ) rStatus = nStatus; |