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

- Change old QArray to QMemArray

svn path=/trunk/kdegraphics/kpdf/; revision=242827
parent 3fb39e38
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <stddef.h> #include <stddef.h>
#include <qscrollview.h> #include <qscrollview.h>
#include <qmemarray.h>
class Object; class Object;
...@@ -174,7 +175,7 @@ private: ...@@ -174,7 +175,7 @@ private:
void updateLineAttrs ( GfxState *state, GBool updateDash ); void updateLineAttrs ( GfxState *state, GBool updateDash );
void doFill ( GfxState *state, bool winding ); void doFill ( GfxState *state, bool winding );
void doClip ( 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 ); int convertSubpath ( GfxState *state, GfxSubpath *subpath, QPointArray &points );
}; };
......
...@@ -386,7 +386,7 @@ void QOutputDevPixmap::updateFont ( GfxState *state ) ...@@ -386,7 +386,7 @@ void QOutputDevPixmap::updateFont ( GfxState *state )
void QOutputDevPixmap::stroke ( GfxState *state ) void QOutputDevPixmap::stroke ( GfxState *state )
{ {
QPointArray points; QPointArray points;
QArray<int> lengths; QMemArray<int> lengths;
// transform points // transform points
int n = convertPath ( state, points, lengths ); int n = convertPath ( state, points, lengths );
...@@ -433,7 +433,7 @@ void QOutputDevPixmap::eoFill ( GfxState *state ) ...@@ -433,7 +433,7 @@ void QOutputDevPixmap::eoFill ( GfxState *state )
void QOutputDevPixmap::doFill ( GfxState *state, bool winding ) void QOutputDevPixmap::doFill ( GfxState *state, bool winding )
{ {
QPointArray points; QPointArray points;
QArray<int> lengths; QMemArray<int> lengths;
// transform points // transform points
int n = convertPath ( state, points, lengths ); int n = convertPath ( state, points, lengths );
...@@ -476,7 +476,7 @@ void QOutputDevPixmap::eoClip ( GfxState *state ) ...@@ -476,7 +476,7 @@ void QOutputDevPixmap::eoClip ( GfxState *state )
void QOutputDevPixmap::doClip ( GfxState *state, bool winding ) void QOutputDevPixmap::doClip ( GfxState *state, bool winding )
{ {
QPointArray points; QPointArray points;
QArray<int> lengths; QMemArray<int> lengths;
// transform points // transform points
int n = convertPath ( state, points, lengths ); int n = convertPath ( state, points, lengths );
...@@ -525,7 +525,7 @@ void QOutputDevPixmap::doClip ( GfxState *state, bool winding ) ...@@ -525,7 +525,7 @@ void QOutputDevPixmap::doClip ( GfxState *state, bool winding )
// Then it connects subaths within a single compound polygon to a single // Then it connects subaths within a single compound polygon to a single
// point so that X can fill the polygon (sort of). // 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 ( ); GfxPath *path = state-> getPath ( );
int n = path-> getNumSubpaths ( ); int n = path-> getNumSubpaths ( );
......
...@@ -176,7 +176,7 @@ private: ...@@ -176,7 +176,7 @@ private:
void updateLineAttrs ( GfxState *state, GBool updateDash ); void updateLineAttrs ( GfxState *state, GBool updateDash );
void doFill ( GfxState *state, bool winding ); void doFill ( GfxState *state, bool winding );
void doClip ( 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 ); 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