Browse Source

Fixing compile errors due to unused explicit lambda captures.

Signed-off-by: Ken Pruiksma <[email protected]>
Ken Pruiksma 4 years ago
parent
commit
59ffcc672c

+ 1 - 1
Gem/Code/Source/AreaLightExampleComponent.cpp

@@ -100,7 +100,7 @@ namespace AtomSampleViewer
             azrtti_typeid<AZ::Debug::NoClipControllerComponent>());
 
         // Sidebar
-        m_materialBrowser.SetFilter([this](const AZ::Data::AssetInfo& assetInfo)
+        m_materialBrowser.SetFilter([](const AZ::Data::AssetInfo& assetInfo)
             {
                 return assetInfo.m_assetType == azrtti_typeid<AZ::RPI::MaterialAsset>() &&
                     assetInfo.m_assetId.m_subId == 0; // no materials generated from models.

+ 1 - 1
Gem/Code/Source/Automation/ScriptManager.cpp

@@ -55,7 +55,7 @@ namespace AtomSampleViewer
         ReflectScriptContext(m_sriptBehaviorContext.get());
         m_scriptContext->BindTo(m_sriptBehaviorContext.get());
 
-        m_scriptBrowser.SetFilter([this](const AZ::Data::AssetInfo& assetInfo)
+        m_scriptBrowser.SetFilter([](const AZ::Data::AssetInfo& assetInfo)
         {
             return AzFramework::StringFunc::EndsWith(assetInfo.m_relativePath, ".bv.luac");
         });

+ 1 - 1
Gem/Code/Source/BakedShaderVariantExampleComponent.cpp

@@ -64,7 +64,7 @@ namespace AtomSampleViewer
         TickBus::Handler::BusConnect();
         m_imguiSidebar.Activate();
 
-        m_materialBrowser.SetFilter([this](const AZ::Data::AssetInfo& assetInfo) {
+        m_materialBrowser.SetFilter([](const AZ::Data::AssetInfo& assetInfo) {
             if (!AzFramework::StringFunc::Path::IsExtension(assetInfo.m_relativePath.c_str(), "azmaterial"))
             {
                 return false;

+ 1 - 1
Gem/Code/Source/RHI/AlphaToCoverageExampleComponent.cpp

@@ -304,7 +304,7 @@ namespace AtomSampleViewer
         const uint32_t typeIndex = static_cast<uint32_t>(type);
 
         // Creates a scope for blend type.
-        const auto prepareFunction = [this, type, typeIndex](RHI::FrameGraphInterface frameGraph, [[maybe_unused]] const ScopeData& scopeData)
+        const auto prepareFunction = [this, type](RHI::FrameGraphInterface frameGraph, [[maybe_unused]] const ScopeData& scopeData)
         {
             // Bind the color attachment
             {

+ 1 - 1
Gem/Code/Source/RHI/InputAssemblyExampleComponent.cpp

@@ -239,7 +239,7 @@ namespace AtomSampleViewer
             //UserDataParam - Empty for this samples
         };
 
-        const auto prepareFunction = [this](RHI::FrameGraphInterface frameGraph, ScopeData& scopeData)
+        const auto prepareFunction = [](RHI::FrameGraphInterface frameGraph, ScopeData& scopeData)
         {
             AZ_UNUSED(scopeData);
             // Declare usage of the vertex buffer as UAV