From db5851701605ef75a07ad09d623eebaf54a7d6f8 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Fri, 7 Mar 2025 10:34:32 -0500 Subject: [PATCH] Documentation - Fix various typos found in codebase #414 Found via codespell --- samples/ocafsamples/TPrsStd_Sample.cxx | 6 +++--- tests/bugs/caf/bug31918_1 | 22 +++++++++++----------- tests/bugs/moddata_1/bug22459 | 2 +- tests/bugs/step/bug24135 | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/samples/ocafsamples/TPrsStd_Sample.cxx b/samples/ocafsamples/TPrsStd_Sample.cxx index 9cf16ec078..8c597e1921 100644 --- a/samples/ocafsamples/TPrsStd_Sample.cxx +++ b/samples/ocafsamples/TPrsStd_Sample.cxx @@ -137,18 +137,18 @@ static void Sample() // Setting the new TPrsStd_AISPresentation to // 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 ); } diff --git a/tests/bugs/caf/bug31918_1 b/tests/bugs/caf/bug31918_1 index ec7a26ba1d..d2f59ce574 100644 --- a/tests/bugs/caf/bug31918_1 +++ b/tests/bugs/caf/bug31918_1 @@ -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 "} { diff --git a/tests/bugs/moddata_1/bug22459 b/tests/bugs/moddata_1/bug22459 index 009f226a20..59e2889b35 100755 --- a/tests/bugs/moddata_1/bug22459 +++ b/tests/bugs/moddata_1/bug22459 @@ -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 diff --git a/tests/bugs/step/bug24135 b/tests/bugs/step/bug24135 index 8cf1326d0b..3e38888385 100755 --- a/tests/bugs/step/bug24135 +++ b/tests/bugs/step/bug24135 @@ -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