]> Creatis software - creaEnvironment.git/commitdiff
*** empty log message ***
authorJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Mon, 9 Feb 2009 16:36:37 +0000 (16:36 +0000)
committerJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Mon, 9 Feb 2009 16:36:37 +0000 (16:36 +0000)
lib/kernel_Environment/ReaderEnvironment_Txx.h

index 8a512bce0cf0e1a99204bb6fa2e10f14d0dc083e..e6e1795ea858747edb5c49f915d9d1312e7d9ac2 100644 (file)
@@ -48,6 +48,7 @@
                                                {
                                                        this->nameConceptFile=nameConceptFile;
                                                        this->nameObjectFile=nameObjectFile;
+
                                                        this->things=things;
                                                        this->nameOtherConceptsFile = nameOtherConceptsFile;
                                                        this->environment= new SomeEnvironment<T>();
                                        template<class T>
                                        bool ReaderEnvironment<T>::addThings()
                                                {
-                                                       int numObjects,j;
+                                                       int numObjects=0,j=0;
                                                        bool addedInstants=true;
                                                        typename std::map<std::string,std::string>::iterator iteratorData;
                                                        typename std::map<std::string,T>::iterator iteratorThings;
                                        template<class T>
                                        bool ReaderEnvironment<T>::addConcepts()
                                                {
-                                                       int numConcepts,i;
+                                                       int numConcepts=0,i=0;
                                                        std::map<std::string,std::string>::iterator iteratorData;
                                                        //getting the number of concepts defined
                                                        iteratorData=dataInFile.find(NUMCONCEPTS);