| 10166 | Colour::~Colour(){ if( !m_moved ) use( None ); } |
| 10167 | |
| 10168 | void Colour::use( Code _colourCode ) { |
| 10169 | static IColourImpl* impl = platformColourInstance(); |
| 10170 | // Strictly speaking, this cannot possibly happen. |
| 10171 | // However, under some conditions it does happen (see #1626), |
| 10172 | // and this change is small enough that we can let practicality |
| 10173 | // triumph over purity in this case. |
| 10174 | if (impl != NULL) { |
| 10175 | impl->use( _colourCode ); |
| 10176 | } |
| 10177 | } |
| 10178 | |
| 10179 | std::ostream& operator << ( std::ostream& os, Colour const& ) { |
| 10180 | return os; |
nothing calls this directly
no test coverage detected