| 10148 | Colour::~Colour(){ if( !m_moved ) use( None ); } |
| 10149 | |
| 10150 | void Colour::use( Code _colourCode ) { |
| 10151 | static IColourImpl* impl = platformColourInstance(); |
| 10152 | // Strictly speaking, this cannot possibly happen. |
| 10153 | // However, under some conditions it does happen (see #1626), |
| 10154 | // and this change is small enough that we can let practicality |
| 10155 | // triumph over purity in this case. |
| 10156 | if (impl != NULL) { |
| 10157 | impl->use( _colourCode ); |
| 10158 | } |
| 10159 | } |
| 10160 | |
| 10161 | std::ostream& operator << ( std::ostream& os, Colour const& ) { |
| 10162 | return os; |
nothing calls this directly
no test coverage detected