Correctly override ModelObject::can*() virtual methods.

This commit is contained in:
Jim Evins
2018-01-01 19:42:39 -05:00
parent ff003e5b17
commit b2859d47bb
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -168,7 +168,7 @@ namespace glabels
/// ///
/// Can Line Color Capability Implementation /// Can Line Color Capability Implementation
/// ///
bool ModelLineObject::canLineColor() bool ModelLineObject::canLineColor() const
{ {
return true; return true;
} }
@@ -177,7 +177,7 @@ namespace glabels
/// ///
/// Can Line Width Capability Implementation /// Can Line Width Capability Implementation
/// ///
bool ModelLineObject::canLineWidth() bool ModelLineObject::canLineWidth() const
{ {
return true; return true;
} }
+2 -2
View File
@@ -89,8 +89,8 @@ namespace glabels
// Capability Implementations // Capability Implementations
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
public: public:
virtual bool canLineColor(); bool canLineColor() const override;
virtual bool canLineWidth(); bool canLineWidth() const override;
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
+3 -3
View File
@@ -183,7 +183,7 @@ namespace glabels
/// ///
/// Can Fill Capability Implementation /// Can Fill Capability Implementation
/// ///
bool ModelShapeObject::canFill() bool ModelShapeObject::canFill() const
{ {
return true; return true;
} }
@@ -192,7 +192,7 @@ namespace glabels
/// ///
/// Can Line Color Capability Implementation /// Can Line Color Capability Implementation
/// ///
bool ModelShapeObject::canLineColor() bool ModelShapeObject::canLineColor() const
{ {
return true; return true;
} }
@@ -201,7 +201,7 @@ namespace glabels
/// ///
/// Can Line Width Capability Implementation /// Can Line Width Capability Implementation
/// ///
bool ModelShapeObject::canLineWidth() bool ModelShapeObject::canLineWidth() const
{ {
return true; return true;
} }
+3 -3
View File
@@ -91,9 +91,9 @@ namespace glabels
// Capability Implementations // Capability Implementations
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
public: public:
virtual bool canFill(); bool canFill() const override;
virtual bool canLineColor(); bool canLineColor() const override;
virtual bool canLineWidth(); bool canLineWidth() const override;
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
+1 -1
View File
@@ -453,7 +453,7 @@ namespace glabels
/// ///
/// Can Text Capability Implementation /// Can Text Capability Implementation
/// ///
bool ModelTextObject::canText() bool ModelTextObject::canText() const
{ {
return true; return true;
} }
+1 -1
View File
@@ -162,7 +162,7 @@ namespace glabels
// Capability Implementations // Capability Implementations
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////
public: public:
virtual bool canText(); bool canText() const override;
/////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////