summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/CommandLineParse.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2019-02-13 01:59:43 +0000
committerGitHub <noreply@github.com>2019-02-13 01:59:43 +0000
commit8d59d1bb11bf594afc6fa3f0a860773c6fa6b8b5 (patch)
tree39b666b2bd36c44c1787821c4a5d982e3a14b619 /Source/Core/UICommon/CommandLineParse.cpp
parent6b22693e6ee783989f92c8a09a4912f4123235d5 (diff)
parent49fe9f5db13f15460a49c5771ee0d2c6b8bfdc3c (diff)
Merge pull request #7798 from ShFil119/impr/empty
Use empty instead of size
Diffstat (limited to 'Source/Core/UICommon/CommandLineParse.cpp')
-rw-r--r--Source/Core/UICommon/CommandLineParse.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/UICommon/CommandLineParse.cpp b/Source/Core/UICommon/CommandLineParse.cpp
index 69f1491ad7..46838f05c3 100644
--- a/Source/Core/UICommon/CommandLineParse.cpp
+++ b/Source/Core/UICommon/CommandLineParse.cpp
@@ -25,10 +25,10 @@ public:
const std::string& audio_backend)
: ConfigLayerLoader(Config::LayerType::CommandLine)
{
- if (video_backend.size())
+ if (!video_backend.empty())
m_values.emplace_back(std::make_tuple(Config::MAIN_GFX_BACKEND.location, video_backend));
- if (audio_backend.size())
+ if (!audio_backend.empty())
m_values.emplace_back(
std::make_tuple(Config::MAIN_DSP_HLE.location, ValueToString(audio_backend == "HLE")));