mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-26 04:32:35 +01:00
memory_string_searcher: Change to std strings
- Compiler warnings indicated that the call to toStdString() did not create an object that lived long enough be used. Simply use std string ahead of time.
This commit is contained in:
parent
9b7d28b5dd
commit
cc71d2c4bf
@ -33,8 +33,8 @@ memory_string_searcher::memory_string_searcher(QWidget* parent)
|
||||
|
||||
void memory_string_searcher::OnSearch()
|
||||
{
|
||||
const QString wstr = m_addr_line->text();
|
||||
const char *str = wstr.toStdString().c_str();
|
||||
const std::string wstr = m_addr_line->text().toStdString();
|
||||
const char *str = wstr.c_str();
|
||||
const u32 len = wstr.length();
|
||||
|
||||
gui_log.notice("Searching for string %s", str);
|
||||
|
Loading…
Reference in New Issue
Block a user