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:
parent
0fb4fa50cd
commit
b2bc136efc
@ -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]),
|
||||
|
@ -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;
|
||||
|
@ -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),
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user