summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoConfig.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-05-10 21:39:56 -0400
committerLioncash <mathew1800@gmail.com>2018-05-10 22:10:45 -0400
commit6d0cab37431a3bb880871c30964f02b83d9d26fe (patch)
treefdfff215cfb9ccc29fb1c76120c98c64ec9d733f /Source/Core/VideoCommon/VideoConfig.cpp
parent3cca05185029ae4572529bf986675c772cc0ac5a (diff)
DolphinQt2/MemoryWidget: Use QString's toUtf8() where applicable instead of toStdString()
Avoids needing to iterate and append the characters in one case. This also alters the function to not need to construct a temporary std::string (QString's toUtf8() is sufficient, as QByteArray exposes iterators). toStdString() is equivalent to retrieving the QString's underlying QByteArray via calling QString's .toUtf8 member function and then calling .toStdString() on the result of it (discarding the QByteArray afterwords), so this just trims off an unnecessary step in the process. This is also somewhat more indicative of the conversions going on: toStdString() converts the underlying character sequence of a QString to UTF-8, not strict ASCII, so we're really using a superset of ASCII.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
0 files changed, 0 insertions, 0 deletions