[commit] r1114 - trunk/GME/Core
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Thu Dec 30 09:28:01 CST 2010
Author: ksmyth
Date: Thu Dec 30 09:28:01 2010
New Revision: 1114
Log:
Small performance bump
Modified:
trunk/GME/Core/CoreAttribute.cpp
Modified: trunk/GME/Core/CoreAttribute.cpp
==============================================================================
--- trunk/GME/Core/CoreAttribute.cpp Wed Dec 29 12:13:46 2010 (r1113)
+++ trunk/GME/Core/CoreAttribute.cpp Thu Dec 30 09:28:01 2010 (r1114)
@@ -1809,24 +1809,7 @@
CComObjPtr<COMTYPE> p;
CreateComObject(p);
- /*
- CCoreTerritory *territory = GetTerritory();
- ASSERT( territory != NULL );
-
- objects_iterator i = collection.begin();
- objects_iterator e = collection.end();
- while( i != e )
- {
- CCoreAttribute *attribute = (*i)->FindAttribute(ATTRID_LOCK);
- ASSERT( attribute->GetValType() == VALTYPE_LOCK );
-
- if( territory->GetLocking((CCoreLockAttribute*)attribute) != LOCKING_NONE )
- p->Add(*i);
-
- ++i;
- }
- */
- p->Fill(collection.begin(), collection.end());
+ p->FillAll(collection);
v.pdispVal = p.Detach();
v.vt = VT_DISPATCH;
More information about the gme-commit
mailing list