X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fengine%2FComplexWeight.cxx;h=5101cccc4f9192d10f38c18e951054b93c78277c;hb=refs%2Fheads%2Femc2_project;hp=a55f454a2c3c39bcafd6bd5f8e6f524bf79c8610;hpb=89715815c5f59b23cd3a73a2e57dd4edc1f18330;p=modules%2Fyacs.git diff --git a/src/engine/ComplexWeight.cxx b/src/engine/ComplexWeight.cxx index a55f454a2..5101cccc4 100644 --- a/src/engine/ComplexWeight.cxx +++ b/src/engine/ComplexWeight.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2006-2017 CEA/DEN, EDF R&D +// Copyright (C) 2006-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -17,12 +17,17 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + #include "ComplexWeight.hxx" #include "Exception.hxx" using namespace YACS::ENGINE; +#ifdef WIN32 +#include +#endif + ComplexWeight::ComplexWeight() { setToZero(); @@ -104,7 +109,7 @@ void ComplexWeight::max(ComplexWeight &other) _loopWeight=other._loopWeight; } -ComplexWeight& ComplexWeight::addWeight(const ComplexWeight *other) +void ComplexWeight::addWeight(const ComplexWeight *other) { bool found; if ((!_bootWeight) && ((other->isUnsetLoopWeight() && this->isDefaultValueLoop()) || (this->isUnsetLoopWeight() && other->isDefaultValueLoop())))