mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 07:49:59 +00:00
Reduce unnecessary use of smart pointers
Speed up type checking by using std::maps and switch statements Add compile flag to win/IfcGeom.vcproj
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#define SHAPE(T) \
|
||||
if ( l->is(T::Class()) ) { \
|
||||
try { \
|
||||
bool b = convert(reinterpret_pointer_cast<IfcBaseClass,T>(l),r); \
|
||||
bool b = convert((T*)l,r); \
|
||||
if ( b ) { \
|
||||
Cache::Shape[l->entity->id()] = r; \
|
||||
return true; \
|
||||
|
||||
Reference in New Issue
Block a user