Salome HOME
Fix for the bug IPAL22851: Sub-shapes spelling
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ShapeInfo.cxx
index c126062361408545356a6420e5e5e8488581819d..84573a932789ce94788c77d89854dcaabe61fdc6 100644 (file)
@@ -1,3 +1,22 @@
+// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// 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.
+//
+// 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
+//
+
 #include <GEOMAlgo_ShapeInfo.ixx>
 
 
@@ -82,7 +101,7 @@ static
 //purpose  : 
 //=======================================================================
   void GEOMAlgo_ShapeInfo::SetNbSubShapes(const TopAbs_ShapeEnum aType,
-                                         const Standard_Integer aNb) 
+                                          const Standard_Integer aNb) 
 {
   Standard_Integer iN;
   
@@ -578,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);
   }
@@ -784,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"
@@ -801,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"
@@ -818,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",
@@ -842,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",