Code/Framework

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-23 13:00:45 -07:00
parent 7d71e3dc07
commit 6bdef50444
12 changed files with 7 additions and 15 deletions
@@ -26,7 +26,6 @@ namespace AZ
const u32 Timestamp = AZ_CRC("Timestamp", 0xa5d6e63e);
const u32 Duration = AZ_CRC("Duration", 0x865f80c0);
const u32 Instant = AZ_CRC("Instant", 0x0e9047ad);
const u32 InstantScope = AZ_CRC("InstantScope", 0xed4bfb0e);
}
EventTraceDriller::EventTraceDriller()
@@ -66,7 +66,6 @@ namespace AZ
static const int assertLevel_log = 1;
static const int assertLevel_nativeUI = 2;
static const int assertLevel_crash = 3;
static const int logLevel_errorWarning = 1;
static const int logLevel_full = 2;
static AZ::EnvironmentVariable<AZStd::unordered_set<size_t>> g_ignoredAsserts;
static AZ::EnvironmentVariable<int> g_assertVerbosityLevel;
@@ -68,7 +68,6 @@ namespace UnitTest
static constexpr size_t max_expected_size = MaxExpectedSize;
};
constexpr size_t pairSize = sizeof(AZStd::compressed_pair<CompressedPairInternal::EmptyStruct, int32_t>);
using CompressedPairTestConfigs = ::testing::Types<
CompressedPairTestConfig<CompressedPairInternal::EmptyStruct, CompressedPairInternal::FinalEmptyStruct, 1>
, CompressedPairTestConfig<CompressedPairInternal::EmptyStruct, int32_t, 4>
@@ -639,7 +639,7 @@ namespace AZ::IO
path.InitFromAbsolutePath(m_dummyFilepath);
request->CreateRead(nullptr, buffer, unalignedSize + 4, path, unalignedOffset, unalignedSize);
auto callback = [&fileSize, unalignedOffset, unalignedSize, this](const FileRequest& request)
auto callback = [unalignedOffset, unalignedSize, this](const FileRequest& request)
{
EXPECT_EQ(request.GetStatus(), AZ::IO::IStreamerTypes::RequestStatus::Completed);
auto& readRequest = AZStd::get<AZ::IO::FileRequest::ReadData>(request.GetCommand());
@@ -469,7 +469,7 @@ namespace JsonSerializationTests
*this->m_jsonDocument,
*this->m_jsonDeserializationContext);
ASSERT_EQ(Outcomes::Success, result.GetOutcome());
ASSERT_EQ(Outcomes::DefaultsUsed, result.GetOutcome());
EXPECT_TRUE(defaultValue == output);
}
@@ -225,6 +225,7 @@ namespace UnitTest
defaultTD,
[td = AZStd::move(td)]
{
AZ_UNUSED(td);
});
task.Invoke();
// Destructor should not have run yet (except on moved-from instances)
@@ -16,7 +16,6 @@
namespace AZ::IO
{
constexpr size_t ArchiveFileiOMaxBuffersize = 16 * 1024;
ArchiveFileIO::ArchiveFileIO(IArchive* archive)
: m_archive(archive)
{
@@ -366,7 +366,7 @@ namespace AzFramework
AZStd::set<AZStd::string> tags;
AZStd::string resolvedFilePath = ResolveFilePath(filePath);
auto found = AZStd::find_if(m_fileTagsMap.begin(), m_fileTagsMap.end(), [filePath, resolvedFilePath](auto& entry) -> bool
auto found = AZStd::find_if(m_fileTagsMap.begin(), m_fileTagsMap.end(), [resolvedFilePath](auto& entry) -> bool
{
return resolvedFilePath == ResolveFilePath(entry.first);
});
@@ -27,7 +27,9 @@ namespace AZ
const char* const NetworkFileIOChannel = "NetworkFileIO";
#ifndef REMOTEFILEIO_IS_NETWORKFILEIO
const char* const RemoteFileIOChannel = "RemoteFileIO";
#ifdef REMOTEFILEIO_SYNC_CHECK
const char* const RemoteFileCacheChannel = "RemoteFileCache";
#endif
#endif
const size_t READ_CHUNK_SIZE = 1024 * 256;
@@ -31,8 +31,6 @@ static const int g_closeButtonOffset = g_closeButtonWidth + AzQtComponents::Dock
static const QColor g_tabIndicatorUnderlayColor(Qt::black);
// Constant for the opacity of our tab indicator underlay
static const qreal g_tabIndicatorUnderlayOpacity = 0.75;
// Constant for the duration of our tab animations (in milliseconds)
static const int g_tabAnimationDurationMS = 250;
namespace AzQtComponents
@@ -25,11 +25,6 @@
namespace AzQtComponents
{
namespace CardConstants
{
static const char* kPropertySelected = "selected";
}
static QPixmap ApplyAlphaToPixmap(const QPixmap& pixmap, float alpha)
{
QImage image = pixmap.toImage().convertToFormat(QImage::Format_ARGB32);
@@ -1306,7 +1306,7 @@ namespace AzToolsFramework
void EditorVertexSelectionVariable<Vertex>::PrepareActions()
{
ActionOverride deleteAction = CreateDeleteAction(
s_deleteVerticesTitle, s_duplicateVerticesDesc,
s_deleteVerticesTitle, s_deleteVerticesDesc,
[this]()
{
DestroySelected();