summaryrefslogtreecommitdiffstats
path: root/src/libcola/gradient_projection.h
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-10-16 20:21:27 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-10-16 20:21:27 +0000
commitf304ed29d6f2b92b872ffc2b218bc8398b879ef0 (patch)
treece3de4b6e387d4c8f7a4e3d15a3c1ce6af749f37 /src/libcola/gradient_projection.h
parentcouple of typos affecting Path->Linked Offset (Bug 1236830) (diff)
downloadinkscape-f304ed29d6f2b92b872ffc2b218bc8398b879ef0.tar.gz
inkscape-f304ed29d6f2b92b872ffc2b218bc8398b879ef0.zip
cppcheck initialisation
(bzr r12697)
Diffstat (limited to 'src/libcola/gradient_projection.h')
-rw-r--r--src/libcola/gradient_projection.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/libcola/gradient_projection.h b/src/libcola/gradient_projection.h
index 8cf45586c..980fa6064 100644
--- a/src/libcola/gradient_projection.h
+++ b/src/libcola/gradient_projection.h
@@ -25,7 +25,12 @@ typedef std::vector<SimpleConstraint*> SimpleConstraints;
class AlignmentConstraint {
friend class GradientProjection;
public:
- AlignmentConstraint(double pos) : position(pos), variable(NULL) {}
+ AlignmentConstraint(double pos) :
+ offsets(),
+ guide(NULL),
+ position(pos),
+ variable(NULL)
+ {}
void updatePosition() {
position = variable->position();
}
@@ -74,7 +79,21 @@ typedef std::vector<std::pair<unsigned, double> > CList;
*/
class DummyVarPair {
public:
- DummyVarPair(double desiredDist) : dist(desiredDist), lap2(1.0/(desiredDist*desiredDist)) { }
+ DummyVarPair(double desiredDist) :
+ leftof(),
+ rightof(),
+ place_l(0),
+ place_r(0),
+ dist(desiredDist),
+ b(0),
+ left(NULL),
+ right(NULL),
+ lap2(1.0/(desiredDist*desiredDist)),
+ g(0),
+ old_place_l(0),
+ old_place_r(0)
+ {}
+
CList leftof; // variables to which left dummy var must be to the left of
CList rightof; // variables to which right dummy var must be to the right of
double place_l;