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