Skip to content

Commit

Permalink
force strict ISO C++ (-Wpedantic)
Browse files Browse the repository at this point in the history
for Drawing, Image, Inspection, Mesh, MeshPart, Part, Path, Points, Raytracing, ReverseEngineering, Spreadsheet, Start, Surface, Web

TODO: fix several -Woverflow in area
  • Loading branch information
wwmayer committed Sep 18, 2019
1 parent f7c3cba commit a247b7e
Show file tree
Hide file tree
Showing 51 changed files with 216 additions and 211 deletions.
26 changes: 13 additions & 13 deletions src/Mod/Drawing/Gui/Command.cpp
Expand Up @@ -50,7 +50,7 @@ using namespace std;
// CmdDrawingOpen
//===========================================================================

DEF_STD_CMD(CmdDrawingOpen);
DEF_STD_CMD(CmdDrawingOpen)

CmdDrawingOpen::CmdDrawingOpen()
: Command("Drawing_Open")
Expand Down Expand Up @@ -86,7 +86,7 @@ void CmdDrawingOpen::activated(int iMsg)
// Drawing_NewPage
//===========================================================================

DEF_STD_CMD_ACL(CmdDrawingNewPage);
DEF_STD_CMD_ACL(CmdDrawingNewPage)

CmdDrawingNewPage::CmdDrawingNewPage()
: Command("Drawing_NewPage")
Expand Down Expand Up @@ -263,7 +263,7 @@ bool CmdDrawingNewPage::isActive(void)
// Drawing_NewA3Landscape
//===========================================================================

DEF_STD_CMD_A(CmdDrawingNewA3Landscape);
DEF_STD_CMD_A(CmdDrawingNewA3Landscape)

CmdDrawingNewA3Landscape::CmdDrawingNewA3Landscape()
: Command("Drawing_NewA3Landscape")
Expand Down Expand Up @@ -302,7 +302,7 @@ bool CmdDrawingNewA3Landscape::isActive(void)
// Drawing_NewView
//===========================================================================

DEF_STD_CMD(CmdDrawingNewView);
DEF_STD_CMD(CmdDrawingNewView)

CmdDrawingNewView::CmdDrawingNewView()
: Command("Drawing_NewView")
Expand Down Expand Up @@ -381,7 +381,7 @@ void CmdDrawingNewView::activated(int iMsg)
// Drawing_OrthoView
//===========================================================================

DEF_STD_CMD_A(CmdDrawingOrthoViews);
DEF_STD_CMD_A(CmdDrawingOrthoViews)

CmdDrawingOrthoViews::CmdDrawingOrthoViews()
: Command("Drawing_OrthoViews")
Expand Down Expand Up @@ -431,7 +431,7 @@ bool CmdDrawingOrthoViews::isActive(void)
// Drawing_OpenBrowserView
//===========================================================================

DEF_STD_CMD_A(CmdDrawingOpenBrowserView);
DEF_STD_CMD_A(CmdDrawingOpenBrowserView)

CmdDrawingOpenBrowserView::CmdDrawingOpenBrowserView()
: Command("Drawing_OpenBrowserView")
Expand Down Expand Up @@ -469,7 +469,7 @@ bool CmdDrawingOpenBrowserView::isActive(void)
// Drawing_Annotation
//===========================================================================

DEF_STD_CMD_A(CmdDrawingAnnotation);
DEF_STD_CMD_A(CmdDrawingAnnotation)

CmdDrawingAnnotation::CmdDrawingAnnotation()
: Command("Drawing_Annotation")
Expand Down Expand Up @@ -517,7 +517,7 @@ bool CmdDrawingAnnotation::isActive(void)
// Drawing_Clip
//===========================================================================

DEF_STD_CMD_A(CmdDrawingClip);
DEF_STD_CMD_A(CmdDrawingClip)

CmdDrawingClip::CmdDrawingClip()
: Command("Drawing_Clip")
Expand Down Expand Up @@ -562,7 +562,7 @@ bool CmdDrawingClip::isActive(void)
// Drawing_Symbol
//===========================================================================

DEF_STD_CMD_A(CmdDrawingSymbol);
DEF_STD_CMD_A(CmdDrawingSymbol)

CmdDrawingSymbol::CmdDrawingSymbol()
: Command("Drawing_Symbol")
Expand Down Expand Up @@ -622,7 +622,7 @@ bool CmdDrawingSymbol::isActive(void)
// Drawing_ExportPage
//===========================================================================

DEF_STD_CMD_A(CmdDrawingExportPage);
DEF_STD_CMD_A(CmdDrawingExportPage)

CmdDrawingExportPage::CmdDrawingExportPage()
: Command("Drawing_ExportPage")
Expand Down Expand Up @@ -678,7 +678,7 @@ bool CmdDrawingExportPage::isActive(void)
// Drawing_ProjectShape
//===========================================================================

DEF_STD_CMD_A(CmdDrawingProjectShape);
DEF_STD_CMD_A(CmdDrawingProjectShape)

CmdDrawingProjectShape::CmdDrawingProjectShape()
: Command("Drawing_ProjectShape")
Expand Down Expand Up @@ -714,7 +714,7 @@ bool CmdDrawingProjectShape::isActive(void)
// Drawing_Draft_View
//===========================================================================

DEF_STD_CMD_A(CmdDrawingDraftView);
DEF_STD_CMD_A(CmdDrawingDraftView)

CmdDrawingDraftView::CmdDrawingDraftView()
: Command("Drawing_DraftView")
Expand Down Expand Up @@ -745,7 +745,7 @@ bool CmdDrawingDraftView::isActive(void)
// Drawing_Spreadheet_View
//===========================================================================

DEF_STD_CMD_A(CmdDrawingSpreadsheetView);
DEF_STD_CMD_A(CmdDrawingSpreadsheetView)

CmdDrawingSpreadsheetView::CmdDrawingSpreadsheetView()
: Command("Drawing_SpreadsheetView")
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Image/Gui/Command.cpp
Expand Up @@ -44,7 +44,7 @@

using namespace ImageGui;

DEF_STD_CMD(CmdImageOpen);
DEF_STD_CMD(CmdImageOpen)

CmdImageOpen::CmdImageOpen()
: Command("Image_Open")
Expand Down Expand Up @@ -92,7 +92,7 @@ void CmdImageOpen::activated(int iMsg)
}

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
DEF_STD_CMD_A(CmdCreateImagePlane);
DEF_STD_CMD_A(CmdCreateImagePlane)

CmdCreateImagePlane::CmdCreateImagePlane()
:Command("Image_CreateImagePlane")
Expand Down Expand Up @@ -166,7 +166,7 @@ bool CmdCreateImagePlane::isActive()
}

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
DEF_STD_CMD(CmdImageScaling);
DEF_STD_CMD(CmdImageScaling)

CmdImageScaling::CmdImageScaling()
: Command("Image_Scaling")
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Inspection/App/InspectionFeature.cpp
Expand Up @@ -493,7 +493,7 @@ float InspectNominalShape::getDistance(const Base::Vector3f& point)

// ----------------------------------------------------------------

TYPESYSTEM_SOURCE(Inspection::PropertyDistanceList, App::PropertyLists);
TYPESYSTEM_SOURCE(Inspection::PropertyDistanceList, App::PropertyLists)

PropertyDistanceList::PropertyDistanceList()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Inspection/Gui/Command.cpp
Expand Up @@ -40,7 +40,7 @@
#include "ViewProviderInspection.h"


DEF_STD_CMD_A(CmdVisualInspection);
DEF_STD_CMD_A(CmdVisualInspection)

CmdVisualInspection::CmdVisualInspection()
: Command("Inspection_VisualInspection")
Expand All @@ -66,7 +66,7 @@ bool CmdVisualInspection::isActive(void)

//--------------------------------------------------------------------------------------

DEF_STD_CMD_A(CmdInspectElement);
DEF_STD_CMD_A(CmdInspectElement)

CmdInspectElement::CmdInspectElement()
: Command("Inspection_InspectElement")
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Mesh/App/Core/Algorithm.h
Expand Up @@ -511,6 +511,6 @@ class MeshExport MeshRefNormalToPoints
std::vector<Base::Vector3f> _norm;
};

}; // namespace MeshCore
} // namespace MeshCore

#endif // MESH_ALGORITHM_H
2 changes: 1 addition & 1 deletion src/Mod/Mesh/App/Core/Helpers.h
Expand Up @@ -97,7 +97,7 @@ inline void MeshHelpPoint::Set (unsigned long ulCorner, unsigned long ulFacet, c
{
_ulInd = (ulFacet << 2) | ulCorner;
_clPt = rclPt;
};
}

inline bool MeshHelpPoint::operator < (const MeshHelpPoint &rclObj) const
{
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Mesh/App/Core/SetOperations.h
Expand Up @@ -185,6 +185,6 @@ class MeshExport SetOperations
};


}; // namespace MeshCore
} // namespace MeshCore

#endif // MESH_SETOPERATIONS_H
6 changes: 3 additions & 3 deletions src/Mod/Mesh/App/MeshProperties.cpp
Expand Up @@ -44,9 +44,9 @@

using namespace Mesh;

TYPESYSTEM_SOURCE(Mesh::PropertyNormalList, App::PropertyLists);
TYPESYSTEM_SOURCE(Mesh::PropertyCurvatureList , App::PropertyLists);
TYPESYSTEM_SOURCE(Mesh::PropertyMeshKernel , App::PropertyComplexGeoData);
TYPESYSTEM_SOURCE(Mesh::PropertyNormalList, App::PropertyLists)
TYPESYSTEM_SOURCE(Mesh::PropertyCurvatureList , App::PropertyLists)
TYPESYSTEM_SOURCE(Mesh::PropertyMeshKernel , App::PropertyComplexGeoData)

PropertyNormalList::PropertyNormalList()
{
Expand Down

0 comments on commit a247b7e

Please sign in to comment.