Rename ReplaceObjectiveFunction to SwapObjectiveFunction I think this makes it more clear that the old function is not deleted.
Cleanup Jamfile. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38960 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -87,7 +87,7 @@ public:
|
||||
|
||||
SummandList* ObjectiveFunction();
|
||||
//! Caller takes ownership of the Summand's and the SummandList.
|
||||
SummandList* ReplaceObjectiveFunction(
|
||||
SummandList* SwapObjectiveFunction(
|
||||
SummandList* objFunction);
|
||||
void SetObjectiveFunction(SummandList* objFunction);
|
||||
void UpdateObjectiveFunction();
|
||||
|
||||
@@ -818,7 +818,7 @@ BALMLayout::_CalculateMinSize()
|
||||
SummandList* newObjFunction = new SummandList(2);
|
||||
newObjFunction->AddItem(new Summand(1.0, fRight));
|
||||
newObjFunction->AddItem(new Summand(1.0, fBottom));
|
||||
SummandList* oldObjFunction = fSolver.ReplaceObjectiveFunction(
|
||||
SummandList* oldObjFunction = fSolver.SwapObjectiveFunction(
|
||||
newObjFunction);
|
||||
_SolveLayout();
|
||||
fSolver.SetObjectiveFunction(oldObjFunction);
|
||||
@@ -847,7 +847,7 @@ BALMLayout::_CalculateMaxSize()
|
||||
SummandList* newObjFunction = new SummandList(2);
|
||||
newObjFunction->AddItem(new Summand(-1.0, fRight));
|
||||
newObjFunction->AddItem(new Summand(-1.0, fBottom));
|
||||
SummandList* oldObjFunction = fSolver.ReplaceObjectiveFunction(
|
||||
SummandList* oldObjFunction = fSolver.SwapObjectiveFunction(
|
||||
newObjFunction);
|
||||
_SolveLayout();
|
||||
fSolver.SetObjectiveFunction(oldObjFunction);
|
||||
|
||||
@@ -422,7 +422,7 @@ LinearSpec::ObjectiveFunction()
|
||||
|
||||
|
||||
SummandList*
|
||||
LinearSpec::ReplaceObjectiveFunction(SummandList* objFunction)
|
||||
LinearSpec::SwapObjectiveFunction(SummandList* objFunction)
|
||||
{
|
||||
SummandList* list = fObjFunction;
|
||||
fObjFunction = objFunction;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
SubDir HAIKU_TOP src tests libs alm ;
|
||||
|
||||
SetSubDirSupportedPlatformsBeOSCompatible ;
|
||||
|
||||
UseLibraryHeaders lp_solve linprog alm ;
|
||||
UsePrivateHeaders shared ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user