SFML/test
Chris Thrasher 3f4bb1ae12 Prevent constructing sf::Text with a temporary sf::Font
By deleting this constructor overload, it fails to compile if
you pass a temporary font to this parameter slot. That includes
code like

  sf::Text text("", sf::Font());

but more importantly it prohibits code like this

  sf::Font getFont()
  {
    sf::Font font;
    // load a font...
    return font;
  }

  sf::Text text("", getFont());

The same idea can be applied to setFont() to prevent setting fonts
from a temporary.

Credit to Jonny for the idea

Co-authored-by: JonnyPtn <jonathan.r.paton@googlemail.com>
2023-01-06 10:21:00 -07:00
..
Audio Rename test files to be unique 2022-10-23 16:39:12 +02:00
Graphics Prevent constructing sf::Text with a temporary sf::Font 2023-01-06 10:21:00 -07:00
install Changed to namespace 2023-01-01 14:31:26 -07:00
Network Rename test files to be unique 2022-10-23 16:39:12 +02:00
System Mark move operators as noexcept 2023-01-04 09:49:20 -07:00
TestUtilities Replaced Header Guards with Pragma Once 2022-12-27 20:08:11 +01:00
Window Rename test files to be unique 2022-10-23 16:39:12 +02:00
CMakeLists.txt Add CI job for Clang on Windows 2022-12-14 15:26:08 -07:00