fix warnigns after merge

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
monroegm-disable-blank-issue-2
Esteban Papp 4 years ago
parent 036114a5a7
commit 0c6a838c6f

@ -113,8 +113,8 @@ namespace SandboxEditor
windowSize, event.m_windowHandle, &AzFramework::WindowRequestBus::Events::GetClientAreaSize); windowSize, event.m_windowHandle, &AzFramework::WindowRequestBus::Events::GetClientAreaSize);
auto screenPoint = AzFramework::ScreenPoint( auto screenPoint = AzFramework::ScreenPoint(
position->m_normalizedPosition.GetX() * windowSize.m_width, static_cast<int>(position->m_normalizedPosition.GetX() * windowSize.m_width),
position->m_normalizedPosition.GetY() * windowSize.m_height); static_cast<int>(position->m_normalizedPosition.GetY() * windowSize.m_height));
m_mouseInteraction.m_mousePick.m_screenCoordinates = screenPoint; m_mouseInteraction.m_mousePick.m_screenCoordinates = screenPoint;
AZStd::optional<ProjectedViewportRay> ray; AZStd::optional<ProjectedViewportRay> ray;

@ -300,11 +300,11 @@ namespace AzToolsFramework
// Generate movement events based on the pixel delta divided by the DPI scaling factor, to calculate a rough approximation // Generate movement events based on the pixel delta divided by the DPI scaling factor, to calculate a rough approximation
// of cursor movement velocity. // of cursor movement velocity.
movementXChannel->ProcessRawInputEvent( movementXChannel->ProcessRawInputEvent(
m_mouseDevice->m_cursorPositionData2D->m_normalizedPositionDelta.GetX() * aznumeric_cast<float>(m_sourceWidget->width()) / static_cast<float>(m_mouseDevice->m_cursorPositionData2D->m_normalizedPositionDelta.GetX() * aznumeric_cast<float>(m_sourceWidget->width()) /
m_sourceWidget->devicePixelRatioF()); m_sourceWidget->devicePixelRatioF()));
movementYChannel->ProcessRawInputEvent( movementYChannel->ProcessRawInputEvent(
m_mouseDevice->m_cursorPositionData2D->m_normalizedPositionDelta.GetY() * aznumeric_cast<float>(m_sourceWidget->height()) / static_cast<float>(m_mouseDevice->m_cursorPositionData2D->m_normalizedPositionDelta.GetY() * aznumeric_cast<float>(m_sourceWidget->height()) /
m_sourceWidget->devicePixelRatioF()); m_sourceWidget->devicePixelRatioF()));
mouseWheelChannel->ProcessRawInputEvent(0.0f); mouseWheelChannel->ProcessRawInputEvent(0.0f);
NotifyUpdateChannelIfNotIdle(systemCursorChannel, nullptr); NotifyUpdateChannelIfNotIdle(systemCursorChannel, nullptr);

@ -32,7 +32,7 @@ namespace UnitTest
{ {
for (int bufferPos = 0, rollback = 0; bufferPos < (bufferSize - 1); ++bufferPos) for (int bufferPos = 0, rollback = 0; bufferPos < (bufferSize - 1); ++bufferPos)
{ {
const char value = 'a' + rollback++; const char value = 'a' + static_cast<char>(rollback++);
buffer[bufferPos] = value; buffer[bufferPos] = value;
if (value == 'z') if (value == 'z')
{ {

@ -38,30 +38,30 @@ namespace AtomToolsFramework
return m_relativePath; return m_relativePath;
} }
const AZStd::any& AtomToolsDocument::GetPropertyValue(const AZ::Name& propertyFullName) const const AZStd::any& AtomToolsDocument::GetPropertyValue([[maybe_unused]] const AZ::Name& propertyFullName) const
{ {
AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__); AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__);
return m_invalidValue; return m_invalidValue;
} }
const AtomToolsFramework::DynamicProperty& AtomToolsDocument::GetProperty(const AZ::Name& propertyFullName) const const AtomToolsFramework::DynamicProperty& AtomToolsDocument::GetProperty([[maybe_unused]] const AZ::Name& propertyFullName) const
{ {
AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__); AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__);
return m_invalidProperty; return m_invalidProperty;
} }
bool AtomToolsDocument::IsPropertyGroupVisible(const AZ::Name& propertyGroupFullName) const bool AtomToolsDocument::IsPropertyGroupVisible([[maybe_unused]] const AZ::Name& propertyGroupFullName) const
{ {
AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__); AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__);
return false; return false;
} }
void AtomToolsDocument::SetPropertyValue(const AZ::Name& propertyFullName, const AZStd::any& value) void AtomToolsDocument::SetPropertyValue([[maybe_unused]] const AZ::Name& propertyFullName, [[maybe_unused]] const AZStd::any& value)
{ {
AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__); AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__);
} }
bool AtomToolsDocument::Open(AZStd::string_view loadPath) bool AtomToolsDocument::Open([[maybe_unused]] AZStd::string_view loadPath)
{ {
AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__); AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__);
return false; return false;
@ -79,14 +79,14 @@ namespace AtomToolsFramework
return false; return false;
} }
bool AtomToolsDocument::SaveAsCopy(AZStd::string_view savePath) bool AtomToolsDocument::SaveAsCopy([[maybe_unused]] AZStd::string_view savePath)
{ {
AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__); AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__);
return false; return false;
} }
bool AtomToolsDocument::SaveAsChild(AZStd::string_view savePath) bool AtomToolsDocument::SaveAsChild([[maybe_unused]] AZStd::string_view savePath)
{ {
AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__); AZ_Error("AtomToolsDocument", false, "%s not implemented.", __FUNCTION__);
return false; return false;

Loading…
Cancel
Save