]> OCCT Git - occt.git/commitdiff
Documentation - Fix various typos found in codebase #414
authorluzpaz <luzpaz@users.noreply.github.com>
Fri, 7 Mar 2025 15:34:32 +0000 (10:34 -0500)
committerGitHub <noreply@github.com>
Fri, 7 Mar 2025 15:34:32 +0000 (15:34 +0000)
Found via codespell

samples/ocafsamples/TPrsStd_Sample.cxx
tests/bugs/caf/bug31918_1
tests/bugs/moddata_1/bug22459
tests/bugs/step/bug24135

index 9cf16ec0785e54df1bbeee8e526ea853949e474e..8c597e1921f2eb89f4284b695df71b99d1421e6f 100644 (file)
@@ -137,18 +137,18 @@ static void Sample()
   // Setting the new  TPrsStd_AISPresentation to <ShapeLabel>
   // It can be done in two different ways:
 
-  Handle(TPrsStd_AISPresentation) Presenation;
+  Handle(TPrsStd_AISPresentation) Presentation;
   //  1. By giving to TPrsStd_AISPresentation attribute Standard_GUID of an attribute  to be displayed:
   //  This GUID will be used to find driver for building AIS_InteractiveObject in the map of drivers
         
-  Presenation = TPrsStd_AISPresentation::Set( ShapeLabel, TNaming_NamedShape::GetID() );
+  Presentation = TPrsStd_AISPresentation::Set( ShapeLabel, TNaming_NamedShape::GetID() );
  
   //  2. Or by giving the attribute itself to TPrsStd_AISPresentation attribute:
   //  An ID of attribute  will be used to find driver for building AIS_InteractiveObject in the map of drivers
 
   Handle(TNaming_NamedShape) NS;
   if( ShapeLabel.FindAttribute( TNaming_NamedShape::GetID(), NS) ) {
-    Presenation = TPrsStd_AISPresentation::Set( NS );
+    Presentation = TPrsStd_AISPresentation::Set( NS );
   }
 
 
index ec7a26ba1da537e274e32ad97cda0ed21625b1cc..d2f59ce5746f9b395351be0570bac75a90a26522 100644 (file)
@@ -49,26 +49,26 @@ proc action_time args {
 set whole_time [action_time]
 puts "Whole document open time $whole_time mcs"
 
-set quater_time [action_time -read0:2]
-puts "Quater of document open time $quater_time mcs"
+set quarter_time [action_time -read0:2]
+puts "Quarter of document open time $quarter_time mcs"
 
-# Check that open of quater of the document is significantly faster than open of whole.
-if { [expr $quater_time * 1.5] > $whole_time } {
-  puts "Error : loading of quater of the document content too slow relatively to the whole document load"
+# Check that open of quarter of the document is significantly faster than open of whole.
+if { [expr $quarter_time * 1.5] > $whole_time } {
+  puts "Error : loading of quarter of the document content too slow relatively to the whole document load"
 }
 
-set four_quaters_time [action_time -read0:1 -read0:2 -read0:3 -read0:4]
-puts "Four quaters of document open time $four_quaters_time mcs"
+set four_quarters_time [action_time -read0:1 -read0:2 -read0:3 -read0:4]
+puts "Four quarters of document open time $four_quarters_time mcs"
 
-# Check that open of four quaters of the document is not too much slower than opening of the whole document.
-if { [expr $four_quaters_time * 0.9] > $whole_time } {
-  puts "Error : loading of four quaters of the document content too slow relatively to the whole document load"
+# Check that open of four quarters of the document is not too much slower than opening of the whole document.
+if { [expr $four_quarters_time * 0.9] > $whole_time } {
+  puts "Error : loading of four quarters of the document content too slow relatively to the whole document load"
 }
 
 set no_arrays_time [lindex [time {
   Open ${docname} D4 -skipTDataStd_IntegerArray -read0:2
 }] 0]
-puts "Quater of document without arrays open time $no_arrays_time mcs"
+puts "Quarter of document without arrays open time $no_arrays_time mcs"
 
 set attrs [Attributes D4 0:2:13]
 if {"${attrs}" != "TDataStd_Real "} {
index 009f226a20a5401793ddc4ff6173ef8be6a01a18..59e2889b356f5f09042638aaefd4f08457f3a132 100755 (executable)
@@ -13,7 +13,7 @@ stepread [locate_data_file OCC22459-TEST2.stp] result *
 
 set exception_status 0
 set msg [ tpstat c ]
-set index [ lsearch $msg Exeption ]
+set index [ lsearch $msg Exception ]
 
 if {$index > -1} {
   set exception_status 1
index 8cf1326d0b461782ad74894804fde40e072041ea..3e38888385770685cf448c4e732f424839ea51f1 100755 (executable)
@@ -12,7 +12,7 @@ stepread [locate_data_file bug24135_Drum.stp] a *
 
 set exception_status 0
 set msg [ tpstat c ]
-set index [ lsearch $msg Exeption ]
+set index [ lsearch $msg Exception ]
 
 if {$index > -1} {
   set exception_status 1