Fix several clazy issue:

* Using copy-ctor but class SbMatrix/SbViewportRegion has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
This commit is contained in:
wmayer
2022-07-24 19:38:59 +02:00
parent 777aabe46c
commit fd5558f295
6 changed files with 15 additions and 15 deletions

View File

@@ -423,7 +423,7 @@ void SoQtOffscreenRenderer::init(const SbViewportRegion & vpr,
}
this->didallocation = glrenderaction ? false : true;
this->viewport = vpr;
this->viewport = vpr; // clazy:exclude=rule-of-two-soft
this->framebuffer = nullptr;
this->numSamples = -1;
@@ -473,7 +473,7 @@ SoQtOffscreenRenderer::~SoQtOffscreenRenderer()
void
SoQtOffscreenRenderer::setViewportRegion(const SbViewportRegion & region)
{
PRIVATE(this)->viewport = region;
PRIVATE(this)->viewport = region; // clazy:exclude=rule-of-two-soft
}
/*!