Commit 100be6fa authored by Helio Chissini de Castro's avatar Helio Chissini de Castro 💬
Browse files

- Change old QArray to QMemArray

svn path=/trunk/kdegraphics/kpdf/; revision=242827
parent 3fb39e38
......@@ -18,6 +18,7 @@
#include <stddef.h>
#include <qscrollview.h>
#include <qmemarray.h>
class Object;
......@@ -174,7 +175,7 @@ private:
void updateLineAttrs ( GfxState *state, GBool updateDash );
void doFill ( GfxState *state, bool winding );
void doClip ( GfxState *state, bool winding );
int convertPath ( GfxState *state, QPointArray &points, QArray<int> &lengths );
int convertPath ( GfxState *state, QPointArray &points, QMemArray<int> &lengths );
int convertSubpath ( GfxState *state, GfxSubpath *subpath, QPointArray &points );
};
......
......@@ -386,7 +386,7 @@ void QOutputDevPixmap::updateFont ( GfxState *state )
void QOutputDevPixmap::stroke ( GfxState *state )
{
QPointArray points;
QArray<int> lengths;
QMemArray<int> lengths;
// transform points
int n = convertPath ( state, points, lengths );
......@@ -433,7 +433,7 @@ void QOutputDevPixmap::eoFill ( GfxState *state )
void QOutputDevPixmap::doFill ( GfxState *state, bool winding )
{
QPointArray points;
QArray<int> lengths;
QMemArray<int> lengths;
// transform points
int n = convertPath ( state, points, lengths );
......@@ -476,7 +476,7 @@ void QOutputDevPixmap::eoClip ( GfxState *state )
void QOutputDevPixmap::doClip ( GfxState *state, bool winding )
{
QPointArray points;
QArray<int> lengths;
QMemArray<int> lengths;
// transform points
int n = convertPath ( state, points, lengths );
......@@ -525,7 +525,7 @@ void QOutputDevPixmap::doClip ( GfxState *state, bool winding )
// Then it connects subaths within a single compound polygon to a single
// point so that X can fill the polygon (sort of).
//
int QOutputDevPixmap::convertPath ( GfxState *state, QPointArray &points, QArray<int> &lengths )
int QOutputDevPixmap::convertPath ( GfxState *state, QPointArray &points, QMemArray<int> &lengths )
{
GfxPath *path = state-> getPath ( );
int n = path-> getNumSubpaths ( );
......
......@@ -176,7 +176,7 @@ private:
void updateLineAttrs ( GfxState *state, GBool updateDash );
void doFill ( GfxState *state, bool winding );
void doClip ( GfxState *state, bool winding );
int convertPath ( GfxState *state, QPointArray &points, QArray<int> &lengths );
int convertPath ( GfxState *state, QPointArray &points, QMemArray<int> &lengths );
int convertSubpath ( GfxState *state, GfxSubpath *subpath, QPointArray &points );
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment