From c110ffcdaa8b928a984a89cebacd03f5caaace06 Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Sat, 2 Mar 2019 19:42:25 +0100 Subject: Remove redundant initialization --- Source/Core/VideoCommon/PostProcessing.cpp | 2 +- Source/Core/VideoCommon/TextureCacheBase.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon') diff --git a/Source/Core/VideoCommon/PostProcessing.cpp b/Source/Core/VideoCommon/PostProcessing.cpp index b1c9c42056..1f42bd52ca 100644 --- a/Source/Core/VideoCommon/PostProcessing.cpp +++ b/Source/Core/VideoCommon/PostProcessing.cpp @@ -275,7 +275,7 @@ void PostProcessingConfiguration::SaveOptionsConfiguration() break; case ConfigurationOption::OptionType::OPTION_INTEGER: { - std::string value = ""; + std::string value; for (size_t i = 0; i < it.second.m_integer_values.size(); ++i) value += StringFromFormat("%d%s", it.second.m_integer_values[i], i == (it.second.m_integer_values.size() - 1) ? "" : ", "); diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 79e924771d..6860fc8992 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -1127,7 +1127,7 @@ TextureCacheBase::GetTexture(u32 address, u32 width, u32 height, const TextureFo entry->memory_stride = entry->BytesPerRow(); entry->SetNotCopy(); - std::string basename = ""; + std::string basename; if (g_ActiveConfig.bDumpTextures && !hires_tex) { basename = HiresTexture::GenBaseName(src_data, texture_size, &texMem[tlutaddr], palette_size, -- cgit v1.2.3