]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkFactory.cxx
#3299 BBTK Bug New Normal wt4
[bbtk.git] / kernel / src / bbtkFactory.cxx
index d541db35b9203e89b984a63daa7c2dd1a7760eb5..d240eedbafacb8461a79c6a635b090cd7e7a9ad0 100644 (file)
@@ -106,7 +106,6 @@ namespace bbtk
                               std::string pkgname,
                               std::string path)
   {
-    
     Package::Pointer p = Package::CreateFromDynamicLibrary(libname,
                                                           pkgname,
                                                           path);
@@ -125,8 +124,7 @@ namespace bbtk
        mPackageMap[pkgname] = p;
        return true;
       }
-    return false;
-    
+    return false;    
   }
   
   //===================================================================
@@ -148,7 +146,6 @@ namespace bbtk
   void Factory::LoadPackage( const std::string& name )
   {
          
-         
   // Note : in the following :
   // name : the user supplied name
   //      - abreviated name    e.g.       pkg   pkg.so   libbpkg   libbbpkg.so
@@ -228,21 +225,15 @@ namespace bbtk
                          // The following is *NOT* a debug time message :
                          // It's a user intended message.
                          // Please don't remove it.
-                       bbtkMessage("output",3,"   [" <<libname 
-                               <<"] : doesn't exist" <<std::endl);
-                         }
-                         else
-                         {
+                               bbtkMessage("output",3,"   [" << libname <<"] : doesn't exist" <<std::endl);
+                       } else {
                                 ok = DoLoadPackage( libname, pkgname, path);         
-                         }
-                  }
-                  else
-                  {
+                       }
+                  } else {
                          bbtkError("Path ["<<upath<<"] doesn't exist");
                          return;
                   }
-               }
-               else     // ----------------------------------------------------- iterate on the paths  
+               } else     // ----------------------------------------------------- iterate on the paths  
                {
 
                std::string path = ".";
@@ -280,7 +271,6 @@ namespace bbtk
                        foundFile = true; 
 
                  // Try to Load the library
-
                        ok = DoLoadPackage( libname, pkgname, path);
                        if (ok)
                        {
@@ -317,9 +307,6 @@ namespace bbtk
                }       
                bbtkMessage("output",2,"[" << libname << "] loaded" << std::endl);
        }
-
-    
-
   }
 
   //===================================================================