More Code/Framework

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-16 15:55:06 -07:00
parent 06e6f83907
commit 3eb658534b
6 changed files with 12 additions and 20 deletions
@@ -347,17 +347,12 @@ namespace AZ::IO::ArchiveInternal
return EOF;
}
int c = EOF;
int i;
for (i = 0; i < 1; i++)
if (m_nCurSeek == GetFileSize())
{
if (i + m_nCurSeek == GetFileSize())
{
return c;
}
c = pData[i + m_nCurSeek];
break;
return c;
}
m_nCurSeek += i + 1;
c = pData[m_nCurSeek];
m_nCurSeek += 1;
return c;
}
}
@@ -56,7 +56,7 @@ namespace AzPhysics
//! A handle to a Scene within the physics simulation.
//! A SceneHandle is a tuple of a Crc of the scenes name and the index in the Scene list.
using SceneHandle = AZStd::tuple<AZ::Crc32, SceneIndex>;
static constexpr SceneHandle InvalidSceneHandle = { AZ::Crc32(), -1 };
static constexpr SceneHandle InvalidSceneHandle = { AZ::Crc32(), AZ::s8(-1) };
//! Ease of use type for referencing a List of SceneHandle objects.
using SceneHandleList = AZStd::vector<SceneHandle>;
@@ -176,7 +176,7 @@ namespace AzNetworking
//! Takes a quantized integral value and stores the floating point representation.
void DecodeQuantizedValues();
AZ_PUSH_DISABLE_WARNING(4201 4324, "-Wunknown-warning-option") // anonymous union, structure was padded due to alignment
AZ_PUSH_DISABLE_WARNING(4324, "-Wunknown-warning-option") // anonymous union, structure was padded due to alignment
union
{
float m_quantizedValues[NUM_ELEMENTS];
@@ -218,14 +218,7 @@ namespace AzNetworking
{
SerializeType serializedValue = static_cast<SerializeType>(m_serializeValues[i]);
#ifdef AZ_COMPILER_MSVC
# pragma warning(push)
# pragma warning(disable: 4127) // conditional expression is constant
#endif
if (NUM_BYTES == 3)
#ifdef AZ_COMPILER_MSVC
# pragma warning(pop)
#endif
if constexpr (NUM_BYTES == 3)
{
uint8_t lowByte = static_cast<uint8_t>((serializedValue & 0x000000FF) );
uint8_t midByte = static_cast<uint8_t>((serializedValue & 0x0000FF00) >> 8);
@@ -40,6 +40,8 @@ namespace AzQtComponents
//! Current value.
Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged)
public:
using value_type = int;
explicit SliderCombo(QWidget *parent = nullptr);
~SliderCombo();
@@ -142,6 +144,8 @@ namespace AzQtComponents
Q_PROPERTY(double curveMidpoint READ curveMidpoint WRITE setCurveMidpoint)
public:
using value_type = double;
explicit SliderDoubleCombo(QWidget *parent = nullptr);
~SliderDoubleCombo();
@@ -16,7 +16,7 @@ namespace Benchmark
BENCHMARK_DEFINE_F(BM_PrefabLoad, LoadPrefab_Basic)(::benchmark::State& state)
{
const unsigned int numTemplates = state.range();
const unsigned int numTemplates = static_cast<unsigned int>(state.range());
CreateFakePaths(numTemplates);
for (auto _ : state)