summaryrefslogtreecommitdiffstats
path: root/src/object
diff options
context:
space:
mode:
Diffstat (limited to 'src/object')
-rw-r--r--src/object/filters/convolvematrix.cpp2
-rw-r--r--src/object/filters/image.cpp2
-rw-r--r--src/object/filters/turbulence.cpp2
-rw-r--r--src/object/sp-gradient.cpp4
-rw-r--r--src/object/sp-guide.cpp2
-rw-r--r--src/object/sp-item.cpp2
-rw-r--r--src/object/sp-paint-server.cpp2
-rw-r--r--src/object/sp-star.cpp2
8 files changed, 9 insertions, 9 deletions
diff --git a/src/object/filters/convolvematrix.cpp b/src/object/filters/convolvematrix.cpp
index 0f9c993f6..28fcb0ba1 100644
--- a/src/object/filters/convolvematrix.cpp
+++ b/src/object/filters/convolvematrix.cpp
@@ -28,7 +28,7 @@
SPFeConvolveMatrix::SPFeConvolveMatrix() : SPFilterPrimitive() {
this->bias = 0;
- this->divisorIsSet = 0;
+ this->divisorIsSet = false;
this->divisor = 0;
//Setting default values:
diff --git a/src/object/filters/image.cpp b/src/object/filters/image.cpp
index 4b58ce464..83a185cfb 100644
--- a/src/object/filters/image.cpp
+++ b/src/object/filters/image.cpp
@@ -35,7 +35,7 @@
SPFeImage::SPFeImage() : SPFilterPrimitive() {
this->href = nullptr;
- this->from_element = 0;
+ this->from_element = false;
this->SVGElemRef = nullptr;
this->SVGElem = nullptr;
diff --git a/src/object/filters/turbulence.cpp b/src/object/filters/turbulence.cpp
index b626b2380..6ba3a3eee 100644
--- a/src/object/filters/turbulence.cpp
+++ b/src/object/filters/turbulence.cpp
@@ -23,7 +23,7 @@
#include "display/nr-filter.h"
SPFeTurbulence::SPFeTurbulence() : SPFilterPrimitive() {
- this->stitchTiles = 0;
+ this->stitchTiles = false;
this->seed = 0;
this->numOctaves = 0;
this->type = Inkscape::Filters::TURBULENCE_FRACTALNOISE;
diff --git a/src/object/sp-gradient.cpp b/src/object/sp-gradient.cpp
index 1fed2a206..0e3fa8e77 100644
--- a/src/object/sp-gradient.cpp
+++ b/src/object/sp-gradient.cpp
@@ -107,7 +107,7 @@ bool SPGradient::isEquivalent(SPGradient *that)
bool status = false;
- while(1){ // not really a loop, used to avoid deep nesting or multiple exit points from function
+ while(true){ // not really a loop, used to avoid deep nesting or multiple exit points from function
if (this->getStopCount() != that->getStopCount()) { break; }
if (this->hasStops() != that->hasStops()) { break; }
if (!this->getVector() || !that->getVector()) { break; }
@@ -167,7 +167,7 @@ bool SPGradient::isAligned(SPGradient *that)
matches the default value.
*/
- while(1){ // not really a loop, used to avoid deep nesting or multiple exit points from function
+ while(true){ // not really a loop, used to avoid deep nesting or multiple exit points from function
if(this->gradientTransform_set != that->gradientTransform_set) { break; }
if(this->gradientTransform_set &&
(this->gradientTransform != that->gradientTransform)) { break; }
diff --git a/src/object/sp-guide.cpp b/src/object/sp-guide.cpp
index eb0b27ab4..de15c7bcf 100644
--- a/src/object/sp-guide.cpp
+++ b/src/object/sp-guide.cpp
@@ -48,7 +48,7 @@ using std::vector;
SPGuide::SPGuide()
: SPObject()
, label(nullptr)
- , locked(0)
+ , locked(false)
, normal_to_line(Geom::Point(0.,1.))
, point_on_line(Geom::Point(0.,0.))
, color(0x0000ff7f)
diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp
index 6e4a163dc..59ea0a554 100644
--- a/src/object/sp-item.cpp
+++ b/src/object/sp-item.cpp
@@ -1496,7 +1496,7 @@ void SPItem::doWriteTransform(Geom::Affine const &transform, Geom::Affine const
} // endif(compensate)
- gint preserve = prefs->getBool("/options/preservetransform/value", 0);
+ gint preserve = prefs->getBool("/options/preservetransform/value", false);
Geom::Affine transform_attr (transform);
// CPPIFY: check this code.
diff --git a/src/object/sp-paint-server.cpp b/src/object/sp-paint-server.cpp
index 79e60d116..9ada0fee5 100644
--- a/src/object/sp-paint-server.cpp
+++ b/src/object/sp-paint-server.cpp
@@ -30,7 +30,7 @@ bool SPPaintServerReference::_acceptObject(SPObject *obj) const
}
SPPaintServer::SPPaintServer() : SPObject() {
- this->swatch = 0;
+ this->swatch = false;
}
SPPaintServer::~SPPaintServer() = default;
diff --git a/src/object/sp-star.cpp b/src/object/sp-star.cpp
index 1375bcecb..235fd32d8 100644
--- a/src/object/sp-star.cpp
+++ b/src/object/sp-star.cpp
@@ -34,7 +34,7 @@
SPStar::SPStar() : SPPolygon() ,
sides(5),
center(0, 0),
- flatsided(0),
+ flatsided(false),
rounded(0.0),
randomized(0.0)
{