/[tivodecode]/tivocom/trunk/CChunkCollection.cpp
ViewVC logotype

Diff of /tivocom/trunk/CChunkCollection.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 248 by jeremyd2019, Wed Aug 15 06:53:07 2007 UTC revision 249 by jeremyd2019, Wed Aug 29 06:53:05 2007 UTC
# Line 54  STDMETHODIMP CChunkCollection::get_Count(long* pVal) Line 54  STDMETHODIMP CChunkCollection::get_Count(long* pVal)
54          if (!pVal)          if (!pVal)
55                  return E_POINTER;                  return E_POINTER;
56    
57          *pVal = m_chunks.size();          *pVal = static_cast<long>(m_chunks.size());
58          return S_OK;          return S_OK;
59  }  }
60    
61  STDMETHODIMP CChunkCollection::get_Item(long Index, ITivoChunk** pVal)  STDMETHODIMP CChunkCollection::get_Item(long Index, ITivoChunk** pVal)
62  {  {
63          if (Index < 1 || Index > m_chunks.size())          if (Index < 1 || static_cast<size_t>(Index) > m_chunks.size())
64                  return E_INVALIDARG;                  return E_INVALIDARG;
65    
66          return m_chunks[Index-1].CopyTo(pVal);          return m_chunks[Index-1].CopyTo(pVal);

Legend:
Removed from v.248  
changed lines
  Added in v.249

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13