[cig-commits] commit: Minor update.
Mercurial
hg at geodynamics.org
Mon Feb 1 15:32:20 PST 2010
changeset: 707:f6579a57ece4
branch: pcu_rejig
parent: 702:ac3c2f072ad7
user: JericoRevote
date: Thu Dec 03 10:39:40 2009 +1100
files: Base/Automation/src/Stg_ComponentFactory.c
description:
Minor update.
diff -r ac3c2f072ad7 -r f6579a57ece4 Base/Automation/src/Stg_ComponentFactory.c
--- a/Base/Automation/src/Stg_ComponentFactory.c Wed Dec 02 11:31:17 2009 +1100
+++ b/Base/Automation/src/Stg_ComponentFactory.c Thu Dec 03 10:39:40 2009 +1100
@@ -745,8 +745,8 @@ Stg_Component* _Stg_ComponentFactory_Plu
Journal_Firewall( self != NULL, errorStream, "In func %s: Stg_Component is NULL.\n", __func__ );
/* Get this plugins Dictionary */
- for( pluginIndex = 0; pluginIndex < Dictionary_Entry_Value_GetCount( pluginDict ); pluginIndex++ ) {
- thisPluginDict = Dictionary_Entry_Value_AsDictionary( Dictionary_Entry_Value_GetElement( pluginDict, pluginIndex ) );
+ for( pluginIndex = 0; pluginIndex < Dictionary_Entry_Value_GetCount( (Dictionary_Entry_Value*)pluginDict ); pluginIndex++ ) {
+ thisPluginDict = Dictionary_Entry_Value_AsDictionary( Dictionary_Entry_Value_GetElement( (Dictionary_Entry_Value*)pluginDict, pluginIndex ) );
pluginType = StG_Strdup( Dictionary_GetString( thisPluginDict, "Type" ) );
if( !strcmp( plugin->type, pluginType ) ){
@@ -797,8 +797,8 @@ Dictionary_Entry_Value* _Stg_ComponentFa
"In func %s: Stg_Component Factory's dictionary is NULL.\n", __func__ );
/* Get this plugins Dictionary */
- for( pluginIndex = 0; pluginIndex < Dictionary_Entry_Value_GetCount( pluginDict ); pluginIndex++ ) {
- thisPluginDict = Dictionary_Entry_Value_AsDictionary( Dictionary_Entry_Value_GetElement( pluginDict, pluginIndex ) );
+ for( pluginIndex = 0; pluginIndex < Dictionary_Entry_Value_GetCount( (Dictionary_Entry_Value*)pluginDict ); pluginIndex++ ) {
+ thisPluginDict = Dictionary_Entry_Value_AsDictionary( Dictionary_Entry_Value_GetElement( (Dictionary_Entry_Value*)pluginDict, pluginIndex ) );
pluginType = StG_Strdup( Dictionary_GetString( thisPluginDict, "Type" ) );
if( !strcmp( plugin->type, pluginType ) ){
Memory_Free( pluginType );
More information about the CIG-COMMITS
mailing list