| 745 | } |
| 746 | |
| 747 | bool SpaceType_Impl::setLightingPowerPerFloorArea(boost::optional<double> lightingPowerPerFloorArea) { |
| 748 | if (!lightingPowerPerFloorArea) { |
| 749 | return false; |
| 750 | } |
| 751 | OptionalLights templateLights; |
| 752 | LightsVector myLights = lights(); |
| 753 | if (!myLights.empty()) { |
| 754 | templateLights = myLights[0]; |
| 755 | } |
| 756 | return setLightingPowerPerFloorArea(*lightingPowerPerFloorArea, templateLights); |
| 757 | } |
| 758 | |
| 759 | bool SpaceType_Impl::setLightingPowerPerFloorArea(double lightingPowerPerFloorArea, const boost::optional<Lights>& templateLights) { |
| 760 | if (lightingPowerPerFloorArea < 0.0) { |
nothing calls this directly
no test coverage detected