Changed spacing parameter type from int32 to float.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27319 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-04 11:58:01 +00:00
parent 0fb4fa50cd
commit b2bc136efc
4 changed files with 6 additions and 6 deletions

View File

@ -157,9 +157,9 @@ struct ComplexLayouter::SumItemBackup {
// constructor
ComplexLayouter::ComplexLayouter(int32 elementCount, int32 spacing)
ComplexLayouter::ComplexLayouter(int32 elementCount, float spacing)
: fElementCount(elementCount),
fSpacing(spacing),
fSpacing((int32)spacing),
fConstraints(new(nothrow) Constraint*[elementCount]),
fWeights(new(nothrow) float[elementCount]),
fSums(new(nothrow) SumItem[elementCount + 1]),

View File

@ -20,7 +20,7 @@ class LayoutOptimizer;
class ComplexLayouter : public Layouter {
public:
ComplexLayouter(int32 elementCount,
int32 spacing);
float spacing);
virtual ~ComplexLayouter();
virtual status_t InitCheck() const;

View File

@ -113,9 +113,9 @@ public:
// constructor
SimpleLayouter::SimpleLayouter(int32 elementCount, int32 spacing)
SimpleLayouter::SimpleLayouter(int32 elementCount, float spacing)
: fElementCount(elementCount),
fSpacing(spacing),
fSpacing((int32)spacing),
fMin(0),
fMax(B_SIZE_UNLIMITED),
fPreferred(0),

View File

@ -19,7 +19,7 @@ namespace Layout {
class SimpleLayouter : public Layouter {
public:
SimpleLayouter(int32 elementCount,
int32 spacing);
float spacing);
virtual ~SimpleLayouter();
virtual void AddConstraints(int32 element, int32 length,