MCPcopy Create free account
hub / github.com/RenderKit/oidn / use

Method use

external/catch.hpp:10264–10273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10262 Colour::~Colour(){ if( !m_moved ) use( None ); }
10263
10264 void Colour::use( Code _colourCode ) {
10265 static IColourImpl* impl = platformColourInstance();
10266 // Strictly speaking, this cannot possibly happen.
10267 // However, under some conditions it does happen (see #1626),
10268 // and this change is small enough that we can let practicality
10269 // triumph over purity in this case.
10270 if (impl != nullptr) {
10271 impl->use( _colourCode );
10272 }
10273 }
10274
10275 std::ostream& operator << ( std::ostream& os, Colour const& ) {
10276 return os;

Callers

nothing calls this directly

Calls 1

platformColourInstanceFunction · 0.85

Tested by

no test coverage detected