[TD]CI clang warnings

This commit is contained in:
wandererfan
2022-08-23 15:32:13 -04:00
committed by WandererFan
parent c075a298ae
commit aa2b1b8392
246 changed files with 3944 additions and 4241 deletions

View File

@@ -20,8 +20,8 @@
* *
***************************************************************************/
#ifndef _TECHDRAW_FEATUREVIEWGROUP_H_
#define _TECHDRAW_FEATUREVIEWGROUP_H_
#ifndef TECHDRAW_FEATUREVIEWGROUP_H_
#define TECHDRAW_FEATUREVIEWGROUP_H_
#include <Mod/TechDraw/TechDrawGlobal.h>
@@ -41,6 +41,7 @@ class gp_Pnt;
namespace TechDraw
{
const int MAXPROJECTIONCOUNT = 10;
class DrawProjGroupItem;
@@ -55,7 +56,7 @@ class TechDrawExport DrawProjGroup : public TechDraw::DrawViewCollection
public:
/// Constructor
DrawProjGroup();
~DrawProjGroup() override;
~DrawProjGroup() = default;
App::PropertyLinkList Source;
App::PropertyXLinkList XSource;
@@ -156,15 +157,15 @@ protected:
*/
bool checkViewProjType(const char *in);
void arrangeViewPointers(DrawProjGroupItem *viewPtrs[10]) const;
void arrangeViewPointers(std::array<DrawProjGroupItem*, MAXPROJECTIONCOUNT>& viewPtrs) const;
/// Populates array of 10 BoundBox3d's given DrawProjGroupItem *s
/*!
* If documentScale is set, then returned bounding boxes are scaled as in
* the Drawing. Otherwise, the dimensions are as in object space.
*/
void makeViewBbs(DrawProjGroupItem *viewPtrs[10],
Base::BoundBox3d bboxes[10],
void makeViewBbs(std::array<DrawProjGroupItem*, MAXPROJECTIONCOUNT>& viewPtrs,
std::array<Base::BoundBox3d, MAXPROJECTIONCOUNT>& bboxes,
bool scaled = true) const;
/// Helper for calculateAutomaticScale
@@ -172,7 +173,7 @@ protected:
* Returns a width and height in object-space scale, for the enabled views
* without accounting for their actual X and Y positions or borders.
*/
void getViewArea(DrawProjGroupItem *viewPtrs[10],
void getViewArea(std::array<TechDraw::DrawProjGroupItem *, MAXPROJECTIONCOUNT>& viewPtrs,
double &width, double &height,
bool scaled = true) const;
@@ -192,4 +193,4 @@ protected:
} //namespace TechDraw
#endif // _TECHDRAW_FEATUREVIEWGROUP_H_
#endif // TECHDRAW_FEATUREVIEWGROUP_H_