| 10273 | Colour::~Colour(){ if( !m_moved ) use( None ); } |
| 10274 | |
| 10275 | void Colour::use( Code _colourCode ) { |
| 10276 | static IColourImpl* impl = platformColourInstance(); |
| 10277 | // Strictly speaking, this cannot possibly happen. |
| 10278 | // However, under some conditions it does happen (see #1626), |
| 10279 | // and this change is small enough that we can let practicality |
| 10280 | // triumph over purity in this case. |
| 10281 | if (impl != nullptr) { |
| 10282 | impl->use( _colourCode ); |
| 10283 | } |
| 10284 | } |
| 10285 | |
| 10286 | std::ostream& operator << ( std::ostream& os, Colour const& ) { |
| 10287 | return os; |
nothing calls this directly
no test coverage detected