Pointer cleanup (#242)

- Made greater use of smart pointers, eliminating many instances of manual memory management
- Do not use pointers at all for many non-polymorphic classes
- Assorted other code cleanup
This commit is contained in:
Jaye Evins
2025-10-31 16:11:28 -04:00
committed by GitHub
parent fd10d88be5
commit 8c8e447336
159 changed files with 3364 additions and 4045 deletions
+8 -6
View File
@@ -43,8 +43,10 @@ namespace glabels
/////////////////////////////////
public:
Region();
Region( const Distance& x1, const Distance& y1,
const Distance& x2, const Distance& y2 );
Region( Distance x1,
Distance y1,
Distance x2,
Distance y2 );
/////////////////////////////////
@@ -55,21 +57,21 @@ namespace glabels
// X1 Property
//
Distance x1() const;
void setX1( const Distance& value );
void setX1( Distance value );
//
// Y1 Property
//
Distance y1() const;
void setY1( const Distance& value );
void setY1( Distance value );
//
// X2 Property
//
Distance x2() const;
void setX2( const Distance& value );
void setX2( Distance value );
@@ -77,7 +79,7 @@ namespace glabels
// Y2 Property
//
Distance y2() const;
void setY2( const Distance& value );
void setY2( Distance value );
/////////////////////////////////