MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / use

Method use

extlibs/catch/include/catch/catch.hpp:9902–9911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9900 Colour::~Colour(){ if( !m_moved ) use( None ); }
9901
9902 void Colour::use( Code _colourCode ) {
9903 static IColourImpl* impl = platformColourInstance();
9904 // Strictly speaking, this cannot possibly happen.
9905 // However, under some conditions it does happen (see #1626),
9906 // and this change is small enough that we can let practicality
9907 // triumph over purity in this case.
9908 if (impl != NULL) {
9909 impl->use( _colourCode );
9910 }
9911 }
9912
9913 std::ostream& operator << ( std::ostream& os, Colour const& ) {
9914 return os;

Callers

nothing calls this directly

Calls 1

platformColourInstanceFunction · 0.85

Tested by

no test coverage detected