Salome HOME
Fix for the bug IPAL22851: Sub-shapes spelling
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeInfo.cxx
index e34a909fd341791bfa3a05b132462048546bd650..84573a932789ce94788c77d89854dcaabe61fdc6 100644 (file)
@@ -1,24 +1,22 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
 //
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU Lesser General Public
-//  License as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  License along with this library; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 #include <GEOMAlgo_ShapeInfo.ixx>
 
 
@@ -103,7 +101,7 @@ static
 //purpose  : 
 //=======================================================================
   void GEOMAlgo_ShapeInfo::SetNbSubShapes(const TopAbs_ShapeEnum aType,
-                                         const Standard_Integer aNb) 
+                                          const Standard_Integer aNb) 
 {
   Standard_Integer iN;
   
@@ -599,8 +597,8 @@ Standard_Integer TypeToInteger(const TopAbs_ShapeEnum aType)
     printf("  Width     : %.3lf\n", myWidth);
   }
   else if (aKN==GEOMAlgo_KN_TRIANGLE ||
-          aKN==GEOMAlgo_KN_QUADRANGLE||
-          aKN==GEOMAlgo_KN_POLYGON) {
+           aKN==GEOMAlgo_KN_QUADRANGLE||
+           aKN==GEOMAlgo_KN_POLYGON) {
     DumpLocation (myLocation);
     DumpPosition (myPosition);
   }
@@ -805,7 +803,7 @@ void DumpPosition(const gp_Ax3& aAx3)
 //=======================================================================
 void DumpKindOfBounds(const GEOMAlgo_KindOfBounds aKB)
 {
-  char *pStr[]={
+  const char *pStr[]={
     "KB_UNKNOWN", 
     "KB_TRIMMED", 
     "KB_INFINITE"
@@ -822,7 +820,7 @@ void DumpKindOfBounds(const GEOMAlgo_KindOfBounds aKB)
 //=======================================================================
 void DumpKindOfClosed(const GEOMAlgo_KindOfClosed aKC)
 {
-  char *pStr[]={
+  const char *pStr[]={
     "KC_UNKNOWN", 
     "KC_CLOSED", 
     "KC_NOTCLOSED"
@@ -839,7 +837,7 @@ void DumpKindOfClosed(const GEOMAlgo_KindOfClosed aKC)
 //=======================================================================
 void DumpKindOfShape(const GEOMAlgo_KindOfShape aKS)
 {
-  char *pStr[]={
+  const char *pStr[]={
     "KS_UNKNOWN", 
     "KS_SPHERE",
     "KS_CYLINDER",
@@ -863,7 +861,7 @@ void DumpKindOfShape(const GEOMAlgo_KindOfShape aKS)
 //=======================================================================
 void DumpKindOfName(const GEOMAlgo_KindOfName aKS)
 {
-  char *pStr[]={
+  const char *pStr[]={
     "KN_UNKNOWN", 
     "KN_SPHERE",
     "KN_CYLINDER",