Removed stdext from code

This commit is contained in:
Silent 2024-01-28 20:50:58 +01:00
parent 7787d92dc7
commit f521cba4dd
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
3 changed files with 2 additions and 6 deletions

View File

@ -1,7 +1,6 @@
#include "StdAfxSA.h"
#include "FLACDecoderSA.h"
#include <algorithm>
#include <iterator>
FLAC__StreamDecoderReadStatus CAEFLACDecoder::read_cb(const FLAC__StreamDecoder* decoder, FLAC__byte buffer[], size_t* bytes, void* client_data)
{
@ -44,7 +43,7 @@ FLAC__StreamDecoderWriteStatus CAEFLACDecoder::write_cb(const FLAC__StreamDecode
pClientData->m_maxBlockSize = pClientData->m_curBlockSize;
}
auto it = std::copy_n( buffer[0], pClientData->m_curBlockSize, stdext::make_checked_array_iterator(pClientData->m_buffer, pClientData->m_curBlockSize * processedChannels) );
auto it = std::copy_n( buffer[0], pClientData->m_curBlockSize, pClientData->m_buffer );
if ( processedChannels > 1 )
{
std::copy_n( buffer[1], pClientData->m_curBlockSize, it );

View File

@ -1,8 +1,6 @@
#include "StdAfxSA.h"
#include "ModelInfoSA.h"
#include <iterator>
static void* BaseModelInfoShutdown = AddressByVersion<void*>(0x4C4D50, 0x4C4DD0, 0x4CF590);
WRAPPER void CBaseModelInfo::Shutdown() { VARJMP(BaseModelInfoShutdown); }
@ -80,7 +78,7 @@ void CVehicleModelInfo::FindEditableMaterialList()
if ( m_numDirtMaterials > IN_PLACE_BUFFER_DIRT_SIZE )
{
m_dirtMaterials = new RpMaterial* [m_numDirtMaterials];
std::copy( editableMaterials.begin(), editableMaterials.end(), stdext::make_checked_array_iterator(m_dirtMaterials, m_numDirtMaterials) );
std::copy( editableMaterials.begin(), editableMaterials.end(), m_dirtMaterials );
}
else
{

View File

@ -2,7 +2,6 @@
#define __POOLS
#include <cstdint>
#include <iterator>
template <class T, class U = T>
class CPool