VideoCommon/NetPlayChatUI: Default destructor in the cpp file

Ensures that the destruction logic is kept local to the translation unit
(making it nicer when it comes to forward declaring non-trivial types).
It also doesn't really do much to define it in the header.
This commit is contained in:
Lioncash 2019-05-29 06:18:55 -04:00
parent 53b115b81e
commit c958fc1278
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@ NetPlayChatUI::NetPlayChatUI(std::function<void(const std::string&)> callback)
{
}
NetPlayChatUI::~NetPlayChatUI() = default;
void NetPlayChatUI::Display()
{
const float scale = ImGui::GetIO().DisplayFramebufferScale.x;

View File

@ -15,7 +15,7 @@ class NetPlayChatUI
{
public:
explicit NetPlayChatUI(std::function<void(const std::string&)> callback);
~NetPlayChatUI() = default;
~NetPlayChatUI();
using Color = std::array<float, 3>;