~ubuntu-branches/ubuntu/trusty/scribus/trusty

« back to all changes in this revision

Viewing changes to scribus/fpointarray.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-05-16 20:34:07 UTC
  • mfrom: (1.1.13) (32.1.2 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130516203407-ztj7ebsivoo41dih
Tags: 1.4.2.dfsg+r18267-1ubuntu2
Avoid qreal/double type clashes on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
class SCRIBUS_API FPointArray : private QVector<FPoint>
43
43
{
44
44
public: 
45
 
        FPointArray() : count(0), capacity(0), svgState(NULL) {};
46
 
        FPointArray(int size) : QVector<FPoint>(size), count(size), capacity(size), svgState(NULL) {};
47
 
        FPointArray(const FPointArray &a) : QVector<FPoint>(a), count(a.count), capacity(a.capacity), svgState(NULL) {};
 
45
        FPointArray() : count(0), svgState(NULL) {};
 
46
        FPointArray(int size) : QVector<FPoint>(size), count(size), svgState(NULL) {};
 
47
        FPointArray(const FPointArray &a) : QVector<FPoint>(a), count(a.count), svgState(NULL) {};
48
48
        uint size() const { return count; };
49
49
        bool resize(uint newCount);
50
50
        void setPoint(uint i, double x, double y) { Iterator p = begin(); p+=i; p->xp = x; p->yp = y; };
89
89
        void fromQPainterPath(QPainterPath &path);
90
90
private:
91
91
        uint count;
92
 
        uint capacity;
93
92
        SVGState * svgState;
94
93
};
95
94