From 6744b4d48136d81438bf7c6fd107c4cc9b63891e Mon Sep 17 00:00:00 2001 From: Ruben Undheim Date: Sat, 9 Jul 2016 11:12:02 +0200 Subject: Spelling fixes Gbp-Pq: Name 0002-Spelling-fixes.patch --- CSXCAD/src/CSPrimPolyhedron.cpp | 4 ++-- CSXCAD/src/CSPrimPolyhedronReader.cpp | 2 +- CSXCAD/src/CSRectGrid.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'CSXCAD/src') diff --git a/CSXCAD/src/CSPrimPolyhedron.cpp b/CSXCAD/src/CSPrimPolyhedron.cpp index 7eac505..9583b7e 100644 --- a/CSXCAD/src/CSPrimPolyhedron.cpp +++ b/CSXCAD/src/CSPrimPolyhedron.cpp @@ -183,11 +183,11 @@ bool CSPrimPolyhedron::BuildTree() { m_Dimension = 2; - //if structure is not closed due to invalud faces, mark it as 3D + //if structure is not closed due to invalid faces, mark it as 3D if (m_InvalidFaces>0) { m_Dimension = 3; - std::cerr << "CSPrimPolyhedron::BuildTree: Warning, found polyhedron has invalud faces and is not a closed surface, setting to 3D solid anyway!" << std::endl; + std::cerr << "CSPrimPolyhedron::BuildTree: Warning, found polyhedron has invalid faces and is not a closed surface, setting to 3D solid anyway!" << std::endl; } } diff --git a/CSXCAD/src/CSPrimPolyhedronReader.cpp b/CSXCAD/src/CSPrimPolyhedronReader.cpp index ed224fd..c88c67e 100644 --- a/CSXCAD/src/CSPrimPolyhedronReader.cpp +++ b/CSXCAD/src/CSPrimPolyhedronReader.cpp @@ -77,7 +77,7 @@ bool CSPrimPolyhedronReader::Write2XML(TiXmlElement &elem, bool parameterised) elem.SetAttribute("FileType","PLY"); break; default: - elem.SetAttribute("FileType","Unkown"); + elem.SetAttribute("FileType","Unknown"); break; } return CSPrimitives::Write2XML(elem,parameterised); diff --git a/CSXCAD/src/CSRectGrid.cpp b/CSXCAD/src/CSRectGrid.cpp index 50f2947..5b36dc2 100644 --- a/CSXCAD/src/CSRectGrid.cpp +++ b/CSXCAD/src/CSRectGrid.cpp @@ -78,7 +78,7 @@ std::string CSRectGrid::AddDiscLines(int direct, int numLines, double* vals, std } fParse.Parse(DistFunction,dirVar); if (fParse.GetParseErrorType()!=FunctionParser::FP_NO_ERROR) - return std::string("An error occured parsing f(") + dirVar + std::string(") - Parser message:\n") + std::string(fParse.ErrorMsg()); + return std::string("An error occurred parsing f(") + dirVar + std::string(") - Parser message:\n") + std::string(fParse.ErrorMsg()); double dValue=0; bool error=false; @@ -88,7 +88,7 @@ std::string CSRectGrid::AddDiscLines(int direct, int numLines, double* vals, std if (fParse.EvalError()!=0) error=true; AddDiscLine(direct,dValue); } - if (error) return std::string("An error occured evaluation the grid function f(") + dirVar + std::string(")!"); + if (error) return std::string("An error occurred evaluation the grid function f(") + dirVar + std::string(")!"); } return ""; } -- cgit v1.2.3