summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 64c9a0e)
raw | patch | inline | side by side (parent: 64c9a0e)
author | joncruz <joncruz@users.sourceforge.net> | |
Wed, 31 May 2006 06:30:53 +0000 (06:30 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Wed, 31 May 2006 06:30:53 +0000 (06:30 +0000) |
ChangeLog | patch | blob | history | |
src/extension/internal/odf.cpp | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index bba0e3347e1cff793880cab25bfac9f548557922..cfed5f1ab6a899bf562a769e4a9c141ead9ce431 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2006-05-29 Jon A. Cruz <jon@joncruz.org>
+
+ * src/extension/internal/odf.cpp:
+ Corrected deletes and uninitizlied variables.
+ Fixes bug# 1489961.
+
2006-05-30 John Cliff <simarilius@yahoo.com>
src/trace/potrace/inkscape-potrace.cpp
Changed bitsPerSample from hardcoded to calculated for multi color traces
index 16ff0f18f2469e3d7a01ecf1a0966d241b0373ea..1d364804843780d23cdc42b2f68ab89bd333ba68 100644 (file)
{
public:
- SVDMatrix()
+ SVDMatrix() :
+ badval(0),
+ d(0),
+ rows(0),
+ cols(0),
+ size(0)
{
- d = (double *)0;
- rows = cols = size = 0;
}
- SVDMatrix(unsigned int rowSize, unsigned int colSize)
+ SVDMatrix(unsigned int rowSize, unsigned int colSize) :
+ badval(0),
+ rows(rowSize),
+ cols(colSize),
+ size(rows * cols)
{
- rows = rowSize;
- cols = colSize;
- size = rows * cols;
d = new double[size];
for (unsigned int i=0 ; i<size ; i++)
d[i] = 0.0;
}
- SVDMatrix(double *vals, unsigned int rowSize, unsigned int colSize)
+ SVDMatrix(double *vals, unsigned int rowSize, unsigned int colSize) :
+ badval(0),
+ rows(rowSize),
+ cols(colSize),
+ size(rows * cols)
{
- rows = rowSize;
- cols = colSize;
- size = rows * cols;
d = new double[size];
for (unsigned int i=0 ; i<size ; i++)
d[i] = vals[i];
virtual ~SVDMatrix()
{
- delete d;
+ delete[] d;
+ d = 0;
}
- SVDMatrix(const SVDMatrix &other)
+ SVDMatrix(const SVDMatrix &other) :
+ badval(0),
+ d(0),
+ rows(0),
+ cols(0),
+ size(0)
{
assign(other);
}
void assign(const SVDMatrix &other)
{
if (d)
- delete d;
+ {
+ delete[] d;
+ d = 0;
+ }
rows = other.rows;
cols = other.cols;
size = other.size;
@return Structure to access U, S and V.
*/
- SingularValueDecomposition (const SVDMatrix &mat)
+ SingularValueDecomposition (const SVDMatrix &mat) :
+ A(mat),
+ U(),
+ s(0),
+ s_size(0),
+ V()
{
- A = mat;
calculate();
}
/**
* Return the s[index] value
- */
- double getS(unsigned int index);
+ */ double getS(unsigned int index);
/**
* Two norm