]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkUtilities.cxx
index b0eda99f67cbd9db5739e83436edf08c74be4660..778b45e215e705a18e2926d9f7bfee6ed1e962e0 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUtilities.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/11/12 12:47:01 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2008/12/12 10:20:48 $
+  Version:   $Revision: 1.10 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -30,6 +30,7 @@
 
 
 #include "bbtkUtilities.h"
+#include "bbtkMessageManager.h"
 
  
 
@@ -366,9 +367,9 @@ namespace bbtk
        }
       else
        {
-         // bbtkError(in<<" : expected 'a.b' format but no dot found");
          left ="";
          right = "";
+         bbtkGlobalError("Token '"<<in<<"' : expected 'a.b' format but no dot found");
        }
     }
     //=======================================================================
@@ -526,7 +527,7 @@ namespace bbtk
       std::string ss("\\n");
       std::string::size_type pos = 0;
       pos = s.find(ss,0);
-      char* cr = "\n";
+      const char* cr = "\n";
       while ( pos != std::string::npos )
        {
          s.replace(pos,2,cr,1);