From 17ef4c8046fd9eccdf074b72ceb981710552a6b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 11 Jun 2017 16:33:10 +0200 Subject: StringUtil: Make SplitString return by value Simpler usage. --- Source/Core/DolphinWX/Debugger/CodeView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/DolphinWX/Debugger/CodeView.cpp') diff --git a/Source/Core/DolphinWX/Debugger/CodeView.cpp b/Source/Core/DolphinWX/Debugger/CodeView.cpp index 337e0e2972..6e7b4dadca 100644 --- a/Source/Core/DolphinWX/Debugger/CodeView.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeView.cpp @@ -564,8 +564,7 @@ void CCodeView::OnPaint(wxPaintEvent& event) // If running if (m_debugger->IsAlive()) { - std::vector dis; - SplitString(m_debugger->Disassemble(address), '\t', dis); + std::vector dis = SplitString(m_debugger->Disassemble(address), '\t'); dis.resize(2); static const size_t VALID_BRANCH_LENGTH = 10; -- cgit v1.2.3