diff --git a/3d-viewer/CBBox.cpp b/3d-viewer/CBBox.cpp index 23c1856a99..e14636536d 100644 --- a/3d-viewer/CBBox.cpp +++ b/3d-viewer/CBBox.cpp @@ -109,7 +109,7 @@ void CBBOX::Union( const S3D_VERTEX &aPoint ) m_max.x = glm::max( m_max.x, aPoint.x ); m_max.y = glm::max( m_max.y, aPoint.y ); m_max.z = glm::max( m_max.z, aPoint.z ); - } + } } @@ -117,7 +117,7 @@ void CBBOX::Union( const CBBOX &aBBox ) { if( aBBox.m_initialized == false ) return; - + if( !m_initialized ) { // Initialize the bounding box with the given bounding box @@ -159,7 +159,7 @@ void CBBOX::Scale( float aScale ) { if( m_initialized == false ) return; - + S3D_VERTEX scaleV = S3D_VERTEX( aScale, aScale, aScale ); S3D_VERTEX centerV = GetCenter(); @@ -168,7 +168,7 @@ void CBBOX::Scale( float aScale ) } -bool CBBOX::OverlapsBox( const CBBOX &aBBox ) const +bool CBBOX::OverlapsBox( const CBBOX &aBBox ) const { if( aBBox.m_initialized == false ) return false; @@ -181,7 +181,7 @@ bool CBBOX::OverlapsBox( const CBBOX &aBBox ) const } -bool CBBOX::Inside( const S3D_VERTEX &aPoint ) const +bool CBBOX::Inside( const S3D_VERTEX &aPoint ) const { if( m_initialized == false ) return false; @@ -192,7 +192,7 @@ bool CBBOX::Inside( const S3D_VERTEX &aPoint ) const } -float CBBOX::Volume() const +float CBBOX::Volume() const { if( m_initialized == false ) return 0.0f; @@ -206,7 +206,7 @@ void CBBOX::ApplyTransformation( glm::mat4 aTransformMatrix ) { if( m_initialized == false ) return; - + S3D_VERTEX v1 = S3D_VERTEX( aTransformMatrix * glm::vec4( m_min.x, m_min.y, m_min.z, 1.0f ) ); S3D_VERTEX v2 = S3D_VERTEX( aTransformMatrix * glm::vec4( m_max.x, m_max.y, m_max.z, 1.0f ) ); @@ -237,7 +237,7 @@ void CBBOX::ApplyTransformationAA( glm::mat4 aTransformMatrix ) } -void CBBOX::GLdebug() const +void CBBOX::GLdebug() const { if( m_initialized == false ) return; diff --git a/3d-viewer/CImage.cpp b/3d-viewer/CImage.cpp index 0315d65e55..157a0762fd 100644 --- a/3d-viewer/CImage.cpp +++ b/3d-viewer/CImage.cpp @@ -80,11 +80,11 @@ bool CIMAGE::wrapCoords( int *aXo, int *aYo ) const default: break; } - + if( (x < 0) || (x >= (int)m_width) || (y < 0) || (y >= (int)m_height) ) return false; - + *aXo = x; *aYo = y; @@ -127,7 +127,7 @@ void CIMAGE::CopyFull( const CIMAGE *aImgA, const CIMAGE *aImgB, E_IMAGE_OP aOpe else { if ( (aImgA == NULL) || (aImgB == NULL) ) - return; + return; } switch(aOperation) @@ -202,7 +202,7 @@ void CIMAGE::CopyFull( const CIMAGE *aImgA, const CIMAGE *aImgB, E_IMAGE_OP aOpe m_pixels[it] = aImgA->m_pixels[it] ^ aImgB->m_pixels[it]; } break; - + case COPY_BLEND50: for( unsigned int it = 0;it < m_wxh; it++ ) { @@ -253,7 +253,7 @@ static const S_FILTER FILTERS[] = { 7, 255 }, - + // Blur { { { 3, 5, 7, 5, 3}, @@ -378,7 +378,7 @@ void CIMAGE::EfxFilter( CIMAGE *aInImg, E_FILTER aFilterType ) #ifdef USE_OPENMP #pragma omp parallel for #endif /* USE_OPENMP */ - + for( int iy = 0; iy < (int)m_height; iy++) { for( int ix = 0; ix < (int)m_width; ix++ ) @@ -394,7 +394,7 @@ void CIMAGE::EfxFilter( CIMAGE *aInImg, E_FILTER aFilterType ) v += pixelv * factor; } } - + v /= filter.div; v += filter.offset; @@ -421,7 +421,7 @@ void CIMAGE::SetPixelsFromNormalizedFloat( const float * aNormalizedFloatArray ) void CIMAGE::SaveAsPNG( wxString aFileName ) const { unsigned char* pixelbuffer = (unsigned char*) malloc( m_wxh * 3 ); - + wxImage image( m_width, m_height ); for( unsigned int i = 0; i < m_wxh; i++) diff --git a/3d-viewer/CImage.h b/3d-viewer/CImage.h index 9e46cd2d49..16c1a94cac 100644 --- a/3d-viewer/CImage.h +++ b/3d-viewer/CImage.h @@ -99,7 +99,7 @@ public: * @param aValue value to set the pixel */ void Setpixel( int aX, int aY, unsigned char aValue ); - + /** * Function Getpixel * get the pixel value from pixel position, position is clamped in accord with the diff --git a/eeschema/sch_sheet_path.h b/eeschema/sch_sheet_path.h index 939d899a59..c301e030bd 100644 --- a/eeschema/sch_sheet_path.h +++ b/eeschema/sch_sheet_path.h @@ -137,8 +137,8 @@ public: * Function Cmp * Compare if this is the same sheet path as aSheetPathToTest * @param aSheetPathToTest = sheet path to compare - * @return 1 if this sheet path has more sheets than aSheetPathToTest, - * -1 if this sheet path has fewer sheets than aSheetPathToTest, + * @return 1 if this sheet path has more sheets than aSheetPathToTest, + * -1 if this sheet path has fewer sheets than aSheetPathToTest, * or 0 if same */ int Cmp( const SCH_SHEET_PATH& aSheetPathToTest ) const; diff --git a/pcbnew/dialogs/dialog_plot.cpp b/pcbnew/dialogs/dialog_plot.cpp index f3d13a43e5..a893c18dc5 100644 --- a/pcbnew/dialogs/dialog_plot.cpp +++ b/pcbnew/dialogs/dialog_plot.cpp @@ -688,7 +688,7 @@ void DIALOG_PLOT::applyPlotSettings() // If someone enables more copper layers they will be selected by default. selectedLayers = selectedLayers | disabledCopperLayers; tempOptions.SetLayerSelection( selectedLayers ); - + tempOptions.SetNegative( m_plotPSNegativeOpt->GetValue() ); tempOptions.SetA4Output( m_forcePSA4OutputOpt->GetValue() ); @@ -786,7 +786,7 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event ) for( LSEQ seq = m_plotOpts.GetLayerSelection().UIOrder(); seq; ++seq ) { LAYER_ID layer = *seq; - + // All copper layers that are disabled are actually selected // This is due to wonkyness in automatically selecting copper layers // for plotting when adding more than two layers to a board. @@ -795,7 +795,7 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event ) // This skips a copper layer if it is actually disabled on the board. if( ( LSET::AllCuMask() & ~m_board->GetEnabledLayers() )[layer] ) continue; - + // Pick the basename from the board file wxFileName fn( boardFilename ); diff --git a/pcbnew/router/time_limit.cpp b/pcbnew/router/time_limit.cpp index b4cef54869..e0f250b32a 100644 --- a/pcbnew/router/time_limit.cpp +++ b/pcbnew/router/time_limit.cpp @@ -22,7 +22,7 @@ #include "time_limit.h" -TIME_LIMIT::TIME_LIMIT( int aMilliseconds ) : +TIME_LIMIT::TIME_LIMIT( int aMilliseconds ) : m_limitMs( aMilliseconds ) { Restart(); diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index bb1bf3968a..d73a90b225 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -269,7 +269,7 @@ int POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent ) { break; } - + if ( !modified ) updateEditedPoint( *evt ); diff --git a/polygon/math_for_graphics.h b/polygon/math_for_graphics.h index c8be901368..d7fb032871 100644 --- a/polygon/math_for_graphics.h +++ b/polygon/math_for_graphics.h @@ -60,7 +60,7 @@ double GetPointToLineSegmentDistance( int x, int y, int xi, int yi, int xf, int * if b > DBL_MAX/10, assume vertical line at x = a * returns closest point on line in xpp, ypp */ -double GetPointToLineDistance( double a, double b, int x, int y, +double GetPointToLineDistance( double a, double b, int x, int y, double * xp=NULL, double * yp=NULL ); inline double Distance( double x1, double y1, double x2, double y2 ) diff --git a/polygon/poly2tri/poly2tri.h b/polygon/poly2tri/poly2tri.h index 487755e2e9..042cb3dcb3 100644 --- a/polygon/poly2tri/poly2tri.h +++ b/polygon/poly2tri/poly2tri.h @@ -1,4 +1,4 @@ -/* +/* * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * diff --git a/polygon/poly2tri/sweep/cdt.h b/polygon/poly2tri/sweep/cdt.h index 3e6f024086..e7b703de1b 100644 --- a/polygon/poly2tri/sweep/cdt.h +++ b/polygon/poly2tri/sweep/cdt.h @@ -1,4 +1,4 @@ -/* +/* * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * @@ -28,7 +28,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + #ifndef CDT_H #define CDT_H @@ -37,11 +37,11 @@ #include "sweep.h" /** - * + * * @author Mason Green * */ - + namespace p2t { class CDT @@ -50,40 +50,40 @@ public: /** * Constructor - add polyline with non repeating points - * + * * @param polyline */ CDT(std::vector polyline); - + /** * Destructor - clean up memory */ ~CDT(); - + /** * Add a hole - * + * * @param polyline */ void AddHole(std::vector polyline); - + /** * Add a steiner point - * + * * @param point */ void AddPoint(Point* point); - + /** * Triangulate - do this AFTER you've added the polyline, holes, and Steiner points */ void Triangulate(); - + /** * Get CDT triangles */ std::vector GetTriangles(); - + /** * Get triangle map */ @@ -94,7 +94,7 @@ public: /** * Internals */ - + SweepContext* sweep_context_; Sweep* sweep_;