| 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; |
nothing calls this directly
no test coverage detected