Update C++ version to 23, add new warnings and the fix them

This commit is contained in:
Alexander Bock
2025-03-01 15:49:38 +01:00
parent cd8924ed22
commit cc395ce340
28 changed files with 89 additions and 81 deletions

View File

@@ -251,7 +251,7 @@ namespace {
std::optional<float> width [[codegen::greaterequal(0.f)]];
// [[codegen::verbatim(ShadingEnabledInfo.description)]]
std::optional<float> performShading;
std::optional<bool> performShading;
// [[codegen::verbatim(AmbientIntensityInfo.description)]]
std::optional<float> ambientIntensity [[codegen::greaterequal(0.f)]];
@@ -385,7 +385,7 @@ void RenderableNodeArrow::deinitializeGL() {
}
bool RenderableNodeArrow::isReady() const {
return _shaderProgram;
return _shaderProgram != nullptr;
}
void RenderableNodeArrow::updateShapeTransforms(const RenderData& data) {