summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5db8a66)
raw | patch | inline | side by side (parent: 5db8a66)
| author | mental <mental@users.sourceforge.net> | |
| Tue, 9 May 2006 03:03:38 +0000 (03:03 +0000) | ||
| committer | mental <mental@users.sourceforge.net> | |
| Tue, 9 May 2006 03:03:38 +0000 (03:03 +0000) |
| ChangeLog | patch | blob | history | |
| src/splivarot.cpp | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index 66ccb050850c966fd4632698da7446ec3e57c028..3a1be5f51cb07e69bba726ffe2620be0f118f67a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
2006-05-08 MenTaLguY <mental@rydia.net>
- * src/streams-zlib.cpp, src/streams-jar.cpp:
+ * src/streams-zlib.cpp, src/streams-jar.cpp, src/splivarot.cpp:
use std::vector rather than dynamically-sized automatic arrays,
plus cleanups and minor fixes
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index 2f44418896d8d650f6f8abb78dfde74fedccc607..c5969576e6d348d23658d35a1130b1d4e690a889 100644 (file)
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
# include <config.h>
#endif
+#include <vector>
#include "xml/repr.h"
#include "svg/svg.h"
#include "sp-path.h"
// extract the livarot Paths from the source objects
// also get the winding rule specified in the style
int nbOriginaux = g_slist_length(il);
- Path *originaux[nbOriginaux];
- FillRule origWind[nbOriginaux];
+ std::vector<Path *> originaux(nbOriginaux);
+ std::vector<FillRule> origWind(nbOriginaux);
int curOrig;
{
curOrig = 0;
// function needs it.
// this function uses the point_data to get the winding number of each path (ie: is a hole or not)
// for later reconstruction in objects, you also need to extract which path is parent of holes (nesting info)
- theShape->ConvertToFormeNested(res, nbOriginaux, originaux, 1, nbNest, nesting, conts);
+ theShape->ConvertToFormeNested(res, nbOriginaux, &originaux[0], 1, nbNest, nesting, conts);
} else {
- theShape->ConvertToForme(res, nbOriginaux, originaux);
+ theShape->ConvertToForme(res, nbOriginaux, &originaux[0]);
}
delete theShape;