| 811 | } |
| 812 | |
| 813 | bool SpaceType_Impl::setLightingPowerPerPerson(boost::optional<double> lightingPowerPerPerson) { |
| 814 | if (!lightingPowerPerPerson) { |
| 815 | return false; |
| 816 | } |
| 817 | OptionalLights templateLights; |
| 818 | LightsVector myLights = lights(); |
| 819 | if (!myLights.empty()) { |
| 820 | templateLights = myLights[0]; |
| 821 | } |
| 822 | return setLightingPowerPerPerson(*lightingPowerPerPerson, templateLights); |
| 823 | } |
| 824 | |
| 825 | bool SpaceType_Impl::setLightingPowerPerPerson(double lightingPowerPerPerson, const boost::optional<Lights>& templateLights) { |
| 826 | if (lightingPowerPerPerson < 0.0) { |
nothing calls this directly
no test coverage detected