X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Fkernel_Environment%2FReaderEnvironment_Txx.h;fp=lib%2Fkernel_Environment%2FReaderEnvironment_Txx.h;h=e6e1795ea858747edb5c49f915d9d1312e7d9ac2;hb=d2e69ed72a2101f2d76167b92ad51bc9b6755368;hp=8a512bce0cf0e1a99204bb6fa2e10f14d0dc083e;hpb=f8fbdf48321f21b6a92a97e354aaf322cf603367;p=creaEnvironment.git diff --git a/lib/kernel_Environment/ReaderEnvironment_Txx.h b/lib/kernel_Environment/ReaderEnvironment_Txx.h index 8a512bc..e6e1795 100644 --- a/lib/kernel_Environment/ReaderEnvironment_Txx.h +++ b/lib/kernel_Environment/ReaderEnvironment_Txx.h @@ -48,6 +48,7 @@ { this->nameConceptFile=nameConceptFile; this->nameObjectFile=nameObjectFile; + this->things=things; this->nameOtherConceptsFile = nameOtherConceptsFile; this->environment= new SomeEnvironment(); @@ -416,7 +417,7 @@ template bool ReaderEnvironment::addThings() { - int numObjects,j; + int numObjects=0,j=0; bool addedInstants=true; typename std::map::iterator iteratorData; typename std::map::iterator iteratorThings; @@ -483,7 +484,7 @@ template bool ReaderEnvironment::addConcepts() { - int numConcepts,i; + int numConcepts=0,i=0; std::map::iterator iteratorData; //getting the number of concepts defined iteratorData=dataInFile.find(NUMCONCEPTS);