/[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

--- trunk/common/include/Utilities/ScopedPtr.h	2010/09/07 06:28:05	61
+++ trunk/common/include/Utilities/ScopedPtr.h	2010/09/07 11:08:22	62
@@ -155,17 +155,10 @@
 		m_valid_range	= 0xffffffff;
     }
 
-	wxEXPLICIT ScopedArray( int 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 )
+	wxEXPLICIT ScopedArray( size_t size )
 	{
+		m_array = new T[size];
+		m_valid_range = size;
 	}
 
     ~ScopedArray() throw()

 

  ViewVC Help
Powered by ViewVC 1.1.22