diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-06-07 15:43:04 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-06-07 15:43:04 +0000 |
| commit | 92631f68a2295bbfe024195d1f1f208822bcc629 (patch) | |
| tree | 00eaeeda9949f39322b247da6574a9274352e994 /src | |
| parent | Fix compile for GTK+ less than 2.20 when GSEAL is on. Fixes bug #1009010. (diff) | |
| download | inkscape-92631f68a2295bbfe024195d1f1f208822bcc629.tar.gz inkscape-92631f68a2295bbfe024195d1f1f208822bcc629.zip | |
cppcheck
(bzr r11465)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/internal/odf.cpp | 10 | ||||
| -rw-r--r-- | src/knot-holder-entity.h | 8 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp index 8bb96920d..c8c187c77 100644 --- a/src/extension/internal/odf.cpp +++ b/src/extension/internal/odf.cpp @@ -211,9 +211,11 @@ public: SVDMatrix transpose() { SVDMatrix result(cols, rows); - for (unsigned int i=0 ; i<rows ; i++) - for (unsigned int j=0 ; j<cols ; j++) + for (unsigned int i=0 ; i<rows ; i++){ + for (unsigned int j=0 ; j<cols ; j++){ result(j, i) = d[i*cols + j]; + } + } return result; } @@ -239,9 +241,11 @@ private: rows = other.rows; cols = other.cols; size = other.size; + badval = other.badval; d = new double[size]; - for (unsigned int i=0 ; i<size ; i++) + for (unsigned int i=0 ; i<size ; i++){ d[i] = other.d[i]; + } } double badval; diff --git a/src/knot-holder-entity.h b/src/knot-holder-entity.h index 78ece7b05..58dc89bfd 100644 --- a/src/knot-holder-entity.h +++ b/src/knot-holder-entity.h @@ -40,7 +40,13 @@ typedef Geom::Point (* SPKnotHolderGetFunc) (SPItem *item); */ class KnotHolderEntity { public: - KnotHolderEntity() {} + KnotHolderEntity(): + knot(NULL), + item(NULL), + desktop(NULL), + parent_holder(NULL), + my_counter(0) + {} virtual ~KnotHolderEntity(); virtual void create(SPDesktop *desktop, SPItem *item, KnotHolder *parent, |
