Skip to content
Permalink
Browse files

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.
  • Loading branch information...
lioncash committed May 29, 2019
1 parent 53b115b commit c958fc1278f90b8fb4e401abc9a7a16f76f42401
Showing with 3 additions and 1 deletion.
  1. +2 −0 Source/Core/VideoCommon/NetPlayChatUI.cpp
  2. +1 −1 Source/Core/VideoCommon/NetPlayChatUI.h
@@ -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;
@@ -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>;

0 comments on commit c958fc1

Please sign in to comment.
You can’t perform that action at this time.