Salome HOME
[EDF25951] : fix useless message at salome startup
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 31 Aug 2022 12:52:06 +0000 (14:52 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 31 Aug 2022 12:52:06 +0000 (14:52 +0200)
src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx

index 1b93af6eaa0ffd72e9f9c1e34a3349f06a2a5309..5eb66b8b595436af31e9502e89ab526f1a6ddd28 100644 (file)
@@ -235,10 +235,10 @@ void SALOME_ModuleCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc)
                         _typeList.push_back(aType);
                       }
                     else
-                      std::cerr << "Warning: this type (" << aType.name << "," << aType.kind << ") already exists, it will be ignored."  << std::endl;
+                      MESSAGE( "Warning: this type (" << aType.name << "," << aType.kind << ") already exists, it will be ignored." );
                   }
                 else
-                  std::cerr << "Warning: this type (" << aType.name << "," << aType.kind << ") has incorrect kind, it will be ignored." << std::endl;
+                  MESSAGE( "Warning: this type (" << aType.name << "," << aType.kind << ") has incorrect kind, it will be ignored." );
               }
             else if ( !xmlStrcmp(aTypeNode->name, (const xmlChar*)"sequence" )) 
               {
@@ -265,11 +265,11 @@ void SALOME_ModuleCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc)
                         _typeList.push_back(aType);
                       }
                     else
-                      std::cerr << "Warning: this type (" << aType.name << "," << aType.kind << ") already exists, it will be ignored."  << std::endl;
+                      MESSAGE( "Warning: this type (" << aType.name << "," << aType.kind << ") already exists, it will be ignored." );
                   }
                 else
                   {
-                    std::cerr << "Warning: this sequence type (" << aType.name << "," << aType.content << ") has unknown content type, it will be ignored." << std::endl;
+                    MESSAGE( "Warning: this sequence type (" << aType.name << "," << aType.content << ") has unknown content type, it will be ignored." );
                   }
               }
             else if ( !xmlStrcmp(aTypeNode->name, (const xmlChar*)"objref" )) 
@@ -307,7 +307,7 @@ void SALOME_ModuleCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc)
                               }
                             else
                               {
-                                std::cerr << "Warning: this objref type (" << aType.name << ") has unknown base type (" << base << "), it will be ignored." << std::endl;
+                                MESSAGE( "Warning: this objref type (" << aType.name << ") has unknown base type (" << base << "), it will be ignored." );
                                 error=1;
                                 break;
                               }
@@ -324,7 +324,7 @@ void SALOME_ModuleCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc)
                         _typeList.push_back(aType);
                       }
                     else
-                      std::cerr << "Warning: this type (" << aType.name << "," << aType.kind << ") already exists, it will be ignored."  << std::endl;
+                      MESSAGE( "Warning: this type (" << aType.name << "," << aType.kind << ") already exists, it will be ignored." );
                   }
               }
             else if ( !xmlStrcmp(aTypeNode->name, (const xmlChar*)"struct" )) 
@@ -369,7 +369,7 @@ void SALOME_ModuleCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc)
                           }
                         else
                           {
-                            std::cerr << "Warning: this struct type (" << aType.name << ") has unknown member type (" << member.first << "," << member.second << "), it will be ignored." << std::endl;
+                            MESSAGE( "Warning: this struct type (" << aType.name << ") has unknown member type (" << member.first << "," << member.second << "), it will be ignored." );
                             error=1;
                             break;
                           }
@@ -385,7 +385,7 @@ void SALOME_ModuleCatalog_Handler::ProcessXmlDocument(xmlDocPtr theDoc)
                         _typeList.push_back(aType);
                       }
                     else
-                      std::cerr << "Warning: this type (" << aType.name << "," << aType.kind << ") already exists, it will be ignored."  << std::endl;
+                      MESSAGE( "Warning: this type (" << aType.name << "," << aType.kind << ") already exists, it will be ignored.");
                   }
               } // end of struct
             aTypeNode = aTypeNode->next;