From b0fb4c42541c8fd88100929c6121f431e4fe7d25 Mon Sep 17 00:00:00 2001 From: Clifford Yapp <238416+starseeker@users.noreply.github.com> Date: Thu, 14 Jul 2022 20:52:58 -0400 Subject: [PATCH] Remove extra semicolons --- opennurbs_3dm_properties.h | 2 +- opennurbs_archive.cpp | 2 +- opennurbs_bounding_box.cpp | 14 +++++++------- opennurbs_brep_tools.cpp | 2 +- opennurbs_font.cpp | 2 +- opennurbs_light.cpp | 4 ++-- opennurbs_material.cpp | 2 +- opennurbs_subd.cpp | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/opennurbs_3dm_properties.h b/opennurbs_3dm_properties.h index f6700a0d..19dbaf13 100644 --- a/opennurbs_3dm_properties.h +++ b/opennurbs_3dm_properties.h @@ -146,7 +146,7 @@ class ON_CLASS ON_3dmProperties { public: ON_3dmProperties() = default; - ~ON_3dmProperties() = default;; + ~ON_3dmProperties() = default; ON_3dmProperties(const ON_3dmProperties&) = default; ON_3dmProperties& operator=(const ON_3dmProperties&) = default; diff --git a/opennurbs_archive.cpp b/opennurbs_archive.cpp index c382ef37..33380883 100644 --- a/opennurbs_archive.cpp +++ b/opennurbs_archive.cpp @@ -3032,7 +3032,7 @@ ON_BinaryArchive::ReadSize(size_t* sz) bool ON_BinaryArchive::WriteBigSize(size_t sz) { ON__UINT64 u = (ON__UINT64)sz; - return WriteInt64(1,(ON__INT64*)&u);; + return WriteInt64(1,(ON__INT64*)&u); } bool ON_BinaryArchive::ReadBigSize( size_t* sz ) diff --git a/opennurbs_bounding_box.cpp b/opennurbs_bounding_box.cpp index efb8a36c..c008ce3d 100644 --- a/opennurbs_bounding_box.cpp +++ b/opennurbs_bounding_box.cpp @@ -529,7 +529,7 @@ int ON_ClippingRegion::InClipPlaneRegion( if ( x < -clip_plane_tolerance ) out |= cpbit; cpbit <<= 1; - cpeqn++;; + cpeqn++; } } some_out |= out; @@ -593,7 +593,7 @@ int ON_ClippingRegion::InClipPlaneRegion( if ( x < -clip_plane_tolerance ) out |= cpbit; cpbit <<= 1; - cpeqn++;; + cpeqn++; } } some_out |= out; @@ -657,7 +657,7 @@ int ON_ClippingRegion::InClipPlaneRegion( if ( x < -clip_plane_tolerance ) out |= cpbit; cpbit <<= 1; - cpeqn++;; + cpeqn++; } } some_out |= out; @@ -743,7 +743,7 @@ int ON_ClippingRegion::IsVisible( int count, const ON_3fPoint* p ) const if ( x < -clip_plane_tolerance ) out |= cpbit; cpbit <<= 1; - cpeqn++;; + cpeqn++; } } w = xform[12]*cv[0] + xform[13]*cv[1] + xform[14]*cv[2] + xform[15]; @@ -807,7 +807,7 @@ int ON_ClippingRegion::IsVisible( int count, const ON_3dPoint* p ) const if ( x < -clip_plane_tolerance ) out |= cpbit; cpbit <<= 1; - cpeqn++;; + cpeqn++; } } w = xform[12]*cv[0] + xform[13]*cv[1] + xform[14]*cv[2] + xform[15]; @@ -1047,7 +1047,7 @@ int ON_ClippingRegion::TransformPoints( int count, ON_4dPoint* p, unsigned int* if ( x < -clip_plane_tolerance ) out |= cpbit; cpbit <<= 1; - cpeqn++;; + cpeqn++; } } w = xform[12]*cv[0] + xform[13]*cv[1] + xform[14]*cv[2] + xform[15]*cv[3]; @@ -1112,7 +1112,7 @@ int ON_ClippingRegion::TransformPoints( int count, ON_4dPoint* p ) const if ( x < -clip_plane_tolerance ) out |= cpbit; cpbit <<= 1; - cpeqn++;; + cpeqn++; } } w = xform[12]*cv[0] + xform[13]*cv[1] + xform[14]*cv[2] + xform[15]*cv[3]; diff --git a/opennurbs_brep_tools.cpp b/opennurbs_brep_tools.cpp index 77e98228..58e1b424 100644 --- a/opennurbs_brep_tools.cpp +++ b/opennurbs_brep_tools.cpp @@ -301,7 +301,7 @@ bool ON_Brep::SetTrimBoundingBoxes( bool bLazy ) bool ON_Brep::SetTrimBoundingBoxes( ON_BrepFace& face, bool bLazy ) { bool rc = true; - int li, fli, loop_count = m_L.Count(), fl_count = face.m_li.Count();; + int li, fli, loop_count = m_L.Count(), fl_count = face.m_li.Count(); for ( fli = 0; fli < fl_count; fli++ ) { li = face.m_li[fli]; diff --git a/opennurbs_font.cpp b/opennurbs_font.cpp index 2b34e325..3aa1c36d 100644 --- a/opennurbs_font.cpp +++ b/opennurbs_font.cpp @@ -9732,7 +9732,7 @@ bool ON_Font::IsValid(ON_TextLog* text_log) const void ON_Font::Dump(ON_TextLog& dump) const { - const bool bTextHash = dump.IsTextHash();; + const bool bTextHash = dump.IsTextHash(); ON_wString s; diff --git a/opennurbs_light.cpp b/opennurbs_light.cpp index fe87d240..fcfc2609 100644 --- a/opennurbs_light.cpp +++ b/opennurbs_light.cpp @@ -499,7 +499,7 @@ const ON_wString& ON_Light::LightName() const void ON_Light::SetAttenuation(double a,double b,double c) { - m_attenuation = ON_3dVector(a,b,c);; + m_attenuation = ON_3dVector(a,b,c); } void ON_Light::SetAttenuation(const ON_3dVector& att ) @@ -709,7 +709,7 @@ void ON_Light::SetDiffuse( ON_Color c ) void ON_Light::SetSpecular( ON_Color c ) { - m_specular = c;; + m_specular = c; } ON_Color ON_Light::Ambient() const diff --git a/opennurbs_material.cpp b/opennurbs_material.cpp index ee17db12..3a807f12 100644 --- a/opennurbs_material.cpp +++ b/opennurbs_material.cpp @@ -5352,7 +5352,7 @@ void AdjustMeshPeriodicTextureCoordinatesHelper( // map and clamp the tcs that hang over. If the mesh // has edges near the texture seam, the picture will // still look ok. - float f0=0.0f, f1=0.0f, twopitc = (float)two_pi_tc;; + float f0=0.0f, f1=0.0f, twopitc = (float)two_pi_tc; //int f0cnt=0, f1cnt=0; if ( 1 == ftc.quad[0] ) f0 += ftc.Tx[0]; else if ( 4 == ftc.quad[0] ) f1 += twopitc-ftc.Tx[0]; if ( 1 == ftc.quad[1] ) f0 += ftc.Tx[1]; else if ( 4 == ftc.quad[1] ) f1 += twopitc-ftc.Tx[1]; diff --git a/opennurbs_subd.cpp b/opennurbs_subd.cpp index 1f1b01b3..306173d9 100644 --- a/opennurbs_subd.cpp +++ b/opennurbs_subd.cpp @@ -14072,7 +14072,7 @@ const ON_SubDVertex * ON_SubD::ReplaceFaceWithTriangleFan(ON_SubDFace * face, ON if (i < 4) face->m_edge4[i] = ON_SubDEdgePtr::Null; else - face->m_edgex[i - 4] = ON_SubDEdgePtr::Null;; + face->m_edgex[i - 4] = ON_SubDEdgePtr::Null; ON_SubDEdge* e = ON_SUBD_EDGE_POINTER(edges[i].m_ptr); e->RemoveFaceFromArray(face); const_cast(edges[i].RelativeVertex(0))->RemoveFaceFromArray(face);