/[pcsx2_0.9.7]/trunk/common/include/Utilities/ScopedPtr.h
ViewVC logotype

Diff of /trunk/common/include/Utilities/ScopedPtr.h

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

revision 31 by william, Tue Sep 7 03:24:11 2010 UTC revision 62 by william, Tue Sep 7 11:08:22 2010 UTC
# Line 155  public: Line 155  public:
155                  m_valid_range   = 0xffffffff;                  m_valid_range   = 0xffffffff;
156      }      }
157    
158          wxEXPLICIT ScopedArray( int size ) :          wxEXPLICIT ScopedArray( size_t size )
                 m_array( pxAssertDev( size >= 0, "Invalid negative size specified." ) ? new T[size] : NULL )  
         ,       m_valid_range( (uint)size )  
         {  
         }  
   
         // For breaking the 2gb barrier, lets provision this:  
         wxEXPLICIT ScopedArray( s64 size ) :  
                 m_array( pxAssertDev( size >= 0 && (size < UINT_MAX), "Invalid negative size specified to ScopedArray." ) ? new T[size] : NULL )  
         ,       m_valid_range( (uint)size )  
159          {          {
160                    m_array = new T[size];
161                    m_valid_range = size;
162          }          }
163    
164      ~ScopedArray() throw()      ~ScopedArray() throw()

Legend:
Removed from v.31  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.22