EgtGraphics :

- aggiunto ( nothrow) a tutte le new.
This commit is contained in:
Dario Sassi
2018-08-22 07:49:07 +00:00
parent c04b3178ae
commit 723ca86c7b
3 changed files with 8 additions and 7 deletions
+4 -2
View File
@@ -17,6 +17,8 @@
#include "ObjNewGraphics.h"
#include "ObjOldGraphics.h"
using namespace std ;
//----------------------------------------------------------------------------
ObjMultiGraphics::~ObjMultiGraphics( void)
{
@@ -194,9 +196,9 @@ ObjMultiGraphics::ObjMultiGraphics( int nCount, bool bNewWay)
m_vOEGR.reserve( nCount) ;
for ( int i = 0 ; i < nCount ; ++ i) {
if ( bNewWay)
m_vOEGR.emplace_back( new ObjNewGraphics) ;
m_vOEGR.emplace_back( new( nothrow) ObjNewGraphics) ;
else
m_vOEGR.emplace_back( new ObjOldGraphics) ;
m_vOEGR.emplace_back( new( nothrow) ObjOldGraphics) ;
}
m_nCurr = - 1 ;
}