Fix clang 13 compilation problems (#5791)
* Fix clang 13 compilation problems Re-instated ShowPlayedSequencesDebug logic by introducing no-op lambda which replaces missing `Draw2dLabel` functionality ( added TODO marker there ) Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * apply review suggestions Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Fix type in assert message Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
This commit is contained in:
@@ -606,11 +606,9 @@ void CBaseLibraryManager::RegisterItem(CBaseLibraryItem* pItem, REFGUID newGuid)
|
||||
|
||||
if (m_bUniqGuidMap)
|
||||
{
|
||||
bool bNewItem = true;
|
||||
REFGUID oldGuid = pItem->GetGUID();
|
||||
if (!GuidUtil::IsEmpty(oldGuid))
|
||||
{
|
||||
bNewItem = false;
|
||||
m_itemsGuidMap.erase(oldGuid);
|
||||
}
|
||||
if (GuidUtil::IsEmpty(newGuid))
|
||||
|
||||
@@ -487,7 +487,6 @@ bool CLayoutWnd::LoadConfig()
|
||||
|
||||
CreateLayout((EViewLayout)layout, false);
|
||||
|
||||
bool bRebindViewports = false;
|
||||
if (m_splitWnd)
|
||||
{
|
||||
const QString str = settings.value("Viewports").toString();
|
||||
@@ -498,14 +497,12 @@ bool CLayoutWnd::LoadConfig()
|
||||
{
|
||||
break;
|
||||
}
|
||||
bRebindViewports = true;
|
||||
if (!resToken.isEmpty())
|
||||
{
|
||||
m_viewType[nIndex] = resToken;
|
||||
}
|
||||
nIndex++;
|
||||
}
|
||||
;
|
||||
}
|
||||
|
||||
BindViewports();
|
||||
|
||||
@@ -329,7 +329,6 @@ bool CAxisGizmo::MouseCallback(CViewport* view, EMouseEvent event, QPoint& point
|
||||
hc.b2DViewport = view->GetType() != ET_ViewportCamera;
|
||||
hc.point2d = point;
|
||||
view->ViewToWorldRay(point, hc.raySrc, hc.rayDir);
|
||||
bool bHit = false;
|
||||
if (HitTest(hc))
|
||||
{
|
||||
switch (hc.manipulatorMode)
|
||||
@@ -344,7 +343,6 @@ bool CAxisGizmo::MouseCallback(CViewport* view, EMouseEvent event, QPoint& point
|
||||
view->SetCurrentCursor(STD_CURSOR_SCALE);
|
||||
break;
|
||||
}
|
||||
bHit = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,17 +186,6 @@ CBaseObject* CObjectManager::NewObject(CObjectClassDesc* cls, CBaseObject* prev,
|
||||
if (obj->GetType() != OBJTYPE_AZENTITY)
|
||||
{
|
||||
GetIEditor()->RecordUndo(new CUndoBaseObjectNew(obj));
|
||||
|
||||
// check for script entities
|
||||
const char* scriptClassName = "";
|
||||
CEntityObject* entityObj = qobject_cast<CEntityObject*>(obj);
|
||||
QByteArray entityClass; // Leave it outside of the if. Otherwise buffer is deleted.
|
||||
if (entityObj)
|
||||
{
|
||||
entityClass = entityObj->GetEntityClass().toUtf8();
|
||||
scriptClassName = entityClass.data();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -498,13 +498,11 @@ void SandboxIntegrationManager::EntityParentChanged(
|
||||
// before finally being saved, it will result in all of those layers saving, too.
|
||||
AZ::EntityId oldAncestor = oldParentId;
|
||||
|
||||
bool wasNotInLayer = false;
|
||||
AZ::EntityId oldLayer;
|
||||
do
|
||||
{
|
||||
if (!oldAncestor.IsValid())
|
||||
{
|
||||
wasNotInLayer = true;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -530,13 +528,11 @@ void SandboxIntegrationManager::EntityParentChanged(
|
||||
|
||||
AZ::EntityId newAncestor = newParentId;
|
||||
|
||||
bool isGoingToRootScene = false;
|
||||
AZ::EntityId newLayer;
|
||||
do
|
||||
{
|
||||
if (!newAncestor.IsValid())
|
||||
{
|
||||
isGoingToRootScene = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -108,18 +108,15 @@ void CSoundKeyUIControls::OnUIChange(IVariable* pVar, CTrackViewKeyBundle& selec
|
||||
{
|
||||
ISoundKey soundKey;
|
||||
keyHandle.GetKey(&soundKey);
|
||||
bool bChangedSoundFile = false;
|
||||
|
||||
if (pVar == mv_startTrigger.GetVar())
|
||||
{
|
||||
QString sFilename = mv_startTrigger;
|
||||
bChangedSoundFile = sFilename != soundKey.sStartTrigger.c_str();
|
||||
soundKey.sStartTrigger = sFilename.toUtf8().data();
|
||||
}
|
||||
else if (pVar == mv_stopTrigger.GetVar())
|
||||
{
|
||||
QString sFilename = mv_stopTrigger;
|
||||
bChangedSoundFile = sFilename != soundKey.sStopTrigger.c_str();
|
||||
soundKey.sStopTrigger = sFilename.toUtf8().data();
|
||||
}
|
||||
|
||||
|
||||
@@ -2233,7 +2233,6 @@ void CTrackViewDopeSheetBase::AddKeys(const QPoint& point, const bool bTryAddKey
|
||||
|
||||
if (pTrack && inRange)
|
||||
{
|
||||
bool keyCreated = false;
|
||||
if (bTryAddKeysInGroup && pNode->GetParentNode()) // Add keys in group
|
||||
{
|
||||
CTrackViewTrackBundle tracksInGroup = pNode->GetTracksByParam(pTrack->GetParameterType());
|
||||
@@ -2248,8 +2247,6 @@ void CTrackViewDopeSheetBase::AddKeys(const QPoint& point, const bool bTryAddKey
|
||||
AzToolsFramework::ScopedUndoBatch undoBatch("Create Key");
|
||||
pCurrTrack->CreateKey(keyTime);
|
||||
undoBatch.MarkEntityDirty(sequence->GetSequenceComponentEntityId());
|
||||
|
||||
keyCreated = true;
|
||||
}
|
||||
}
|
||||
else // A compound track
|
||||
@@ -2262,8 +2259,6 @@ void CTrackViewDopeSheetBase::AddKeys(const QPoint& point, const bool bTryAddKey
|
||||
AzToolsFramework::ScopedUndoBatch undoBatch("Create Key");
|
||||
pSubTrack->CreateKey(keyTime);
|
||||
undoBatch.MarkEntityDirty(sequence->GetSequenceComponentEntityId());
|
||||
|
||||
keyCreated = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2276,15 +2271,13 @@ void CTrackViewDopeSheetBase::AddKeys(const QPoint& point, const bool bTryAddKey
|
||||
AzToolsFramework::ScopedUndoBatch undoBatch("Create Key");
|
||||
pTrack->CreateKey(keyTime);
|
||||
undoBatch.MarkEntityDirty(sequence->GetSequenceComponentEntityId());
|
||||
|
||||
keyCreated = true;
|
||||
}
|
||||
}
|
||||
else // A compound track
|
||||
{
|
||||
if (pTrack->GetValueType() == AnimValueType::RGB)
|
||||
{
|
||||
keyCreated = CreateColorKey(pTrack, keyTime);
|
||||
CreateColorKey(pTrack, keyTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2295,7 +2288,6 @@ void CTrackViewDopeSheetBase::AddKeys(const QPoint& point, const bool bTryAddKey
|
||||
if (IsOkToAddKeyHere(pSubTrack, keyTime))
|
||||
{
|
||||
pSubTrack->CreateKey(keyTime);
|
||||
keyCreated = true;
|
||||
}
|
||||
}
|
||||
undoBatch.MarkEntityDirty(sequence->GetSequenceComponentEntityId());
|
||||
@@ -2617,7 +2609,6 @@ void CTrackViewDopeSheetBase::DrawSelectTrack(const Range& timeRange, QPainter*
|
||||
void CTrackViewDopeSheetBase::DrawBoolTrack(const Range& timeRange, QPainter* painter, CTrackViewTrack* pTrack, const QRect& rc)
|
||||
{
|
||||
int x0 = TimeToClient(timeRange.start);
|
||||
float t0 = timeRange.start;
|
||||
|
||||
const QBrush prevBrush = painter->brush();
|
||||
painter->setBrush(m_visibilityBrush);
|
||||
@@ -2648,7 +2639,6 @@ void CTrackViewDopeSheetBase::DrawBoolTrack(const Range& timeRange, QPainter* pa
|
||||
painter->fillRect(QRect(QPoint(x0, rc.top() + 4), QPoint(x, rc.bottom() - 4)), gradient);
|
||||
}
|
||||
|
||||
t0 = time;
|
||||
x0 = x;
|
||||
}
|
||||
int x = TimeToClient(timeRange.end);
|
||||
|
||||
@@ -198,7 +198,6 @@ void CTrackViewKeyPropertiesDlg::OnKeySelectionChanged(CTrackViewSequence* seque
|
||||
|
||||
m_wndProps->setEnabled(false);
|
||||
m_wndTrackProps->setEnabled(false);
|
||||
bool bAssigned = false;
|
||||
if (selectedKeys.GetKeyCount() > 0 && selectedKeys.AreAllKeysOfSameType())
|
||||
{
|
||||
CTrackViewTrack* pTrack = selectedKeys.GetKey(0).GetTrack();
|
||||
@@ -215,12 +214,6 @@ void CTrackViewKeyPropertiesDlg::OnKeySelectionChanged(CTrackViewSequence* seque
|
||||
{
|
||||
AddVars(m_keyControls[i]);
|
||||
}
|
||||
|
||||
if (m_keyControls[i]->OnKeySelectionChange(selectedKeys))
|
||||
{
|
||||
bAssigned = true;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,11 +197,9 @@ bool CImageGif::Load(const QString& fileName, CImageEx& outImage)
|
||||
return false;
|
||||
}
|
||||
|
||||
int numcols;
|
||||
unsigned char ch, ch1;
|
||||
uint8* ptr1;
|
||||
int i;
|
||||
short transparency = -1;
|
||||
|
||||
TImage<uint8> outImageIndex;
|
||||
|
||||
@@ -246,7 +244,6 @@ bool CImageGif::Load(const QString& fileName, CImageEx& outImage)
|
||||
HasColormap = ((ch & COLORMAPMASK) ? true : false);
|
||||
|
||||
BitsPerPixel = (ch & 7) + 1;
|
||||
numcols = ColorMapSize = 1 << BitsPerPixel;
|
||||
BitMask = ColorMapSize - 1;
|
||||
|
||||
Background = NEXTBYTE; /* background color... not used. */
|
||||
@@ -290,10 +287,6 @@ bool CImageGif::Load(const QString& fileName, CImageEx& outImage)
|
||||
{
|
||||
case GRAPHIC_EXT:
|
||||
ch = NEXTBYTE;
|
||||
if (ptr[0] & 0x1)
|
||||
{
|
||||
transparency = ptr[3]; /* transparent color index */
|
||||
}
|
||||
ptr += ch;
|
||||
break;
|
||||
case PLAINTEXT_EXT:
|
||||
@@ -317,9 +310,6 @@ bool CImageGif::Load(const QString& fileName, CImageEx& outImage)
|
||||
}
|
||||
}
|
||||
|
||||
//if (transparency >= 0)
|
||||
//mfSet_transparency(transparency);
|
||||
|
||||
/* Now read in values from the image descriptor */
|
||||
|
||||
ch = NEXTBYTE;
|
||||
|
||||
@@ -213,12 +213,10 @@ namespace AzQtComponents
|
||||
// rectangle drawing.
|
||||
if (qTableView || qListView)
|
||||
{
|
||||
int hHdr = 0;
|
||||
int vHdr = 0;
|
||||
|
||||
if (qTableView)
|
||||
{
|
||||
hHdr = qTableView->horizontalHeader()->isVisible() ? qTableView->horizontalHeader()->height() : 0;
|
||||
vHdr = qTableView->verticalHeader()->isVisible() ? qTableView->verticalHeader()->width() : 0;
|
||||
}
|
||||
|
||||
|
||||
-2
@@ -23,7 +23,6 @@ namespace AzToolsFramework
|
||||
// save 2k at a time :( need a better way to do this.
|
||||
AZStd::size_t pos = 0;
|
||||
AZStd::size_t remaining = m_windowState.size();
|
||||
AZ::u8* charData = (AZ::u8*)windowState.begin();
|
||||
|
||||
while (remaining > 0)
|
||||
{
|
||||
@@ -31,7 +30,6 @@ namespace AzToolsFramework
|
||||
m_serializableWindowState.push_back();
|
||||
m_serializableWindowState.back().assign((AZ::u8*)windowState.begin() + pos, (AZ::u8*)windowState.begin() + pos + bytes_this_gulp);
|
||||
pos += bytes_this_gulp;
|
||||
charData += bytes_this_gulp;
|
||||
remaining -= bytes_this_gulp;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1201,8 +1201,6 @@ namespace AzToolsFramework
|
||||
.arg((item->parent() == nullptr) ? item->m_entity->GetName().c_str() : GetNodeDisplayName(*item->m_node).c_str()));
|
||||
}
|
||||
|
||||
SliceTargetTreeItem* parent = nullptr;
|
||||
|
||||
AZStd::vector<SliceAssetPtr> validSliceAssets = GetValidTargetAssetsForField(*item);
|
||||
|
||||
// For the selected item populate the tree of all valid slice targets.
|
||||
@@ -1274,7 +1272,6 @@ namespace AzToolsFramework
|
||||
selectButton->setChecked(true);
|
||||
}
|
||||
|
||||
parent = sliceItem;
|
||||
++level;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@ extern intptr_t _findfirst64(const char* pFileName, __finddata64_t* pFindData);
|
||||
|
||||
extern DWORD GetFileAttributesW(LPCWSTR lpFileName);
|
||||
|
||||
extern const bool GetFilenameNoCase(const char* file, char*, const bool cCreateNew = false);
|
||||
extern const bool GetFilenameNoCase(const char* file, char*);
|
||||
|
||||
extern BOOL GetUserName(LPSTR lpBuffer, LPDWORD nSize);
|
||||
|
||||
|
||||
@@ -1263,8 +1263,7 @@ ILINE void FS_CLOSEDIR_NOERR(FS_DIR_TYPE pDir)
|
||||
const bool GetFilenameNoCase
|
||||
(
|
||||
const char* file,
|
||||
char* pAdjustedFilename,
|
||||
const bool cCreateNew
|
||||
char* pAdjustedFilename
|
||||
)
|
||||
{
|
||||
assert(file);
|
||||
@@ -1281,29 +1280,19 @@ const bool GetFilenameNoCase
|
||||
}
|
||||
}
|
||||
|
||||
char* slash;
|
||||
const char* dirname;
|
||||
char* name;
|
||||
|
||||
if ((pAdjustedFilename) == (char*)-1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
slash = strrchr(pAdjustedFilename, '/');
|
||||
#if !defined(LINUX) && !defined(APPLE) && !defined(DEFINE_SKIP_WILDCARD_CHECK) // fix the parent path anyhow.
|
||||
char* slash = strrchr(pAdjustedFilename, '/');
|
||||
char* name = pAdjustedFilename;
|
||||
if (slash)
|
||||
{
|
||||
dirname = pAdjustedFilename;
|
||||
name = slash + 1;
|
||||
*slash = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
dirname = ".";
|
||||
name = pAdjustedFilename;
|
||||
}
|
||||
|
||||
#if !defined(LINUX) && !defined(APPLE) && !defined(DEFINE_SKIP_WILDCARD_CHECK) // fix the parent path anyhow.
|
||||
// Check for wildcards. We'll always return true if the specified filename is
|
||||
// a wildcard pattern.
|
||||
if (strchr(name, '*') || strchr(name, '?'))
|
||||
@@ -1314,13 +1303,13 @@ const bool GetFilenameNoCase
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Scan for the file.
|
||||
if (slash)
|
||||
{
|
||||
*slash = '/';
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#if FIX_FILENAME_CASE
|
||||
char* path = pAdjustedFilename;
|
||||
|
||||
@@ -1027,8 +1027,6 @@ bool CLocalizedStringsManager::DoLoadExcelXmlSpreadsheet(const char* sFileName,
|
||||
// key CRC
|
||||
uint32 keyCRC;
|
||||
|
||||
size_t nMemSize = 0;
|
||||
|
||||
for (;; )
|
||||
{
|
||||
int nRowIndex = -1;
|
||||
@@ -1509,30 +1507,6 @@ bool CLocalizedStringsManager::DoLoadExcelXmlSpreadsheet(const char* sFileName,
|
||||
pEntry->flags |= SLocalizedStringEntry::IS_INTERCEPTED;
|
||||
}
|
||||
|
||||
nMemSize += sizeof(*pEntry) + pEntry->sCharacterName.length() * sizeof(char);
|
||||
if (m_cvarLocalizationEncode == 0)
|
||||
{
|
||||
//Note that this isn't accurate if we're using encoding/compression to shrink the string as the encoding step hasn't happened yet
|
||||
if (pEntry->TranslatedText.psUtf8Uncompressed)
|
||||
{
|
||||
nMemSize += pEntry->TranslatedText.psUtf8Uncompressed->length() * sizeof(char);
|
||||
}
|
||||
}
|
||||
if (pEntry->pEditorExtension != NULL)
|
||||
{
|
||||
nMemSize += pEntry->pEditorExtension->sKey.length()
|
||||
+ pEntry->pEditorExtension->sOriginalActorLine.length()
|
||||
+ pEntry->pEditorExtension->sUtf8TranslatedActorLine.length() * sizeof(char)
|
||||
+ pEntry->pEditorExtension->sOriginalText.length()
|
||||
+ pEntry->pEditorExtension->sOriginalCharacterName.length();
|
||||
}
|
||||
|
||||
|
||||
// Compression Preparation
|
||||
//unsigned int nSourceSize = pEntry->swTranslatedText.length()*sizeof(wchar_t);
|
||||
//if (nSourceSize)
|
||||
// int zResult = Compress(pDest, nDestLen, pEntry->swTranslatedText.c_str(), nSourceSize);
|
||||
|
||||
AddLocalizedString(m_pLanguage, pEntry, keyCRC);
|
||||
}
|
||||
|
||||
@@ -1540,10 +1514,7 @@ bool CLocalizedStringsManager::DoLoadExcelXmlSpreadsheet(const char* sFileName,
|
||||
{
|
||||
pEncoder->Finalize();
|
||||
|
||||
{
|
||||
uint8 compressionBuffer[COMPRESSION_FIXED_BUFFER_LENGTH];
|
||||
//uint8 decompressionBuffer[COMPRESSION_FIXED_BUFFER_LENGTH];
|
||||
size_t uncompressedTotal = 0, compressedTotal = 0;
|
||||
for (size_t stringToCompress = startOfStringsToCompress; stringToCompress < m_pLanguage->m_vLocalizedStrings.size(); stringToCompress++)
|
||||
{
|
||||
SLocalizedStringEntry* pStringToCompress = m_pLanguage->m_vLocalizedStrings[stringToCompress];
|
||||
@@ -1551,30 +1522,19 @@ bool CLocalizedStringsManager::DoLoadExcelXmlSpreadsheet(const char* sFileName,
|
||||
{
|
||||
size_t compBufSize = COMPRESSION_FIXED_BUFFER_LENGTH;
|
||||
memset(compressionBuffer, 0, COMPRESSION_FIXED_BUFFER_LENGTH);
|
||||
//CryLogAlways("%u Compressing %s (%p)", stringToCompress, pStringToCompress->szCompressedTranslatedText, pStringToCompress->szCompressedTranslatedText);
|
||||
size_t inputStringLength = strlen((const char*)(pStringToCompress->TranslatedText.szCompressed));
|
||||
pEncoder->CompressInput(pStringToCompress->TranslatedText.szCompressed, inputStringLength, compressionBuffer, &compBufSize);
|
||||
compressionBuffer[compBufSize] = 0;
|
||||
pStringToCompress->huffmanTreeIndex = iEncoder;
|
||||
pEncoder->AddRef();
|
||||
//CryLogAlways("Compressed %s (%u) to %s (%u)", pStringToCompress->szCompressedTranslatedText, strlen((const char*)pStringToCompress->szCompressedTranslatedText), compressionBuffer, compBufSize);
|
||||
uncompressedTotal += inputStringLength;
|
||||
compressedTotal += compBufSize;
|
||||
|
||||
uint8* szCompressedString = new uint8[compBufSize];
|
||||
SAFE_DELETE_ARRAY(pStringToCompress->TranslatedText.szCompressed);
|
||||
|
||||
memcpy(szCompressedString, compressionBuffer, compBufSize);
|
||||
pStringToCompress->TranslatedText.szCompressed = szCompressedString;
|
||||
|
||||
//Testing code
|
||||
//memset( decompressionBuffer, 0, COMPRESSION_FIXED_BUFFER_LENGTH );
|
||||
//size_t decompBufSize = pEncoder->UncompressInput(compressionBuffer, COMPRESSION_FIXED_BUFFER_LENGTH, decompressionBuffer, COMPRESSION_FIXED_BUFFER_LENGTH);
|
||||
//CryLogAlways("Decompressed %s (%u) to %s (%u)", compressionBuffer, compBufSize, decompressionBuffer, decompBufSize);
|
||||
}
|
||||
}
|
||||
//CryLogAlways("[LOC PROFILING] %s, %u, Uncompressed %u, Compressed %u", sFileName, m_pLanguage->m_vLocalizedStrings.size() - startOfStringsToCompress, uncompressedTotal, compressedTotal);
|
||||
}
|
||||
}
|
||||
|
||||
pXmlTableReader->Release();
|
||||
@@ -1584,11 +1544,7 @@ bool CLocalizedStringsManager::DoLoadExcelXmlSpreadsheet(const char* sFileName,
|
||||
|
||||
bool CLocalizedStringsManager::DoLoadAGSXmlDocument(const char* sFileName, uint8 nTagID, bool bReload)
|
||||
{
|
||||
if (!sFileName)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!m_pLanguage)
|
||||
if (!sFileName|| !m_pLanguage)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -1731,7 +1687,6 @@ bool CLocalizedStringsManager::DoLoadAGSXmlDocument(const char* sFileName, uint8
|
||||
}
|
||||
{
|
||||
uint8 compressionBuffer[COMPRESSION_FIXED_BUFFER_LENGTH] = {};
|
||||
size_t uncompressedTotal = 0, compressedTotal = 0;
|
||||
for (size_t stringToCompress = startOfStringsToCompress; stringToCompress < m_pLanguage->m_vLocalizedStrings.size(); stringToCompress++)
|
||||
{
|
||||
SLocalizedStringEntry* pStringToCompress = m_pLanguage->m_vLocalizedStrings[stringToCompress];
|
||||
@@ -1744,8 +1699,6 @@ bool CLocalizedStringsManager::DoLoadAGSXmlDocument(const char* sFileName, uint8
|
||||
compressionBuffer[compBufSize] = 0;
|
||||
pStringToCompress->huffmanTreeIndex = iEncoder;
|
||||
pEncoder->AddRef();
|
||||
uncompressedTotal += inputStringLength;
|
||||
compressedTotal += compBufSize;
|
||||
uint8* szCompressedString = new uint8[compBufSize];
|
||||
SAFE_DELETE_ARRAY(pStringToCompress->TranslatedText.szCompressed);
|
||||
memcpy(szCompressedString, compressionBuffer, compBufSize);
|
||||
@@ -1810,7 +1763,7 @@ bool CLocalizedStringsManager::LocalizeString_s(const AZStd::string& sString, AZ
|
||||
bool CLocalizedStringsManager::LocalizeStringInternal(const char* pStr, size_t len, AZStd::string& outLocalizedString, bool bEnglish)
|
||||
{
|
||||
assert (m_pLanguage);
|
||||
if (m_pLanguage == 0)
|
||||
if (m_pLanguage == nullptr)
|
||||
{
|
||||
CryWarning(VALIDATOR_MODULE_SYSTEM, VALIDATOR_WARNING, "LocalizeString: No language set.");
|
||||
outLocalizedString.assign(pStr, pStr + len);
|
||||
|
||||
@@ -2610,15 +2610,8 @@ namespace AssetProcessor
|
||||
{
|
||||
ScopedTransaction transaction(m_databaseConnection);
|
||||
|
||||
const char* statementName = INSERT_NEW_LEGACYSUBID;
|
||||
|
||||
bool creatingNew = entry.m_subIDsEntryID == InvalidEntryId;
|
||||
|
||||
if (!creatingNew)
|
||||
{
|
||||
statementName = OVERWRITE_EXISTING_LEGACYSUBID;
|
||||
}
|
||||
|
||||
if (creatingNew)
|
||||
{
|
||||
if (!s_InsertNewLegacysubidQuery.BindAndStep(*m_databaseConnection, entry.m_productPK, entry.m_subID))
|
||||
|
||||
@@ -274,11 +274,9 @@ namespace AssetProcessor
|
||||
}
|
||||
|
||||
//look for the job in flight first
|
||||
bool found = false;
|
||||
auto foundElement = m_jobRunKeyToJobInfoMap.find(request.m_jobRunKey);
|
||||
if (foundElement != m_jobRunKeyToJobInfoMap.end())
|
||||
{
|
||||
found = true;
|
||||
jobInfo = foundElement->second;
|
||||
}
|
||||
else
|
||||
@@ -296,7 +294,6 @@ namespace AssetProcessor
|
||||
|
||||
AZ_Assert(jobInfos.size() == 1, "Should only have found one jobInfo!!!");
|
||||
jobInfo = AZStd::move(jobInfos[0]);
|
||||
found = true;
|
||||
}
|
||||
|
||||
if (jobInfo.m_status == JobStatus::Failed_InvalidSourceNameExceedsMaxLimit)
|
||||
|
||||
@@ -177,11 +177,9 @@ namespace AssetProcessor
|
||||
AZ_TracePrintf(AssetProcessor::DebugChannel, "JobTrace AddNewJob(%i %s,%s,%s)\n", rcJob, rcJob->GetInputFileAbsolutePath().toUtf8().constData(), rcJob->GetPlatformInfo().m_identifier.c_str(), rcJob->GetJobKey().toUtf8().constData());
|
||||
#endif
|
||||
|
||||
bool isPending = false;
|
||||
if (rcJob->GetState() == RCJob::pending)
|
||||
{
|
||||
m_jobsInQueueLookup.insert(rcJob->GetElementID(), rcJob);
|
||||
isPending = true;
|
||||
}
|
||||
endInsertRows();
|
||||
}
|
||||
|
||||
@@ -152,7 +152,6 @@ void RCcontrollerUnitTests::RunRCControllerTests()
|
||||
}
|
||||
|
||||
QModelIndex rcJobIndex;
|
||||
int rcJobJobIndex;
|
||||
QString rcJobCommand;
|
||||
QString rcJobState;
|
||||
|
||||
@@ -172,7 +171,6 @@ void RCcontrollerUnitTests::RunRCControllerTests()
|
||||
return;
|
||||
}
|
||||
|
||||
rcJobJobIndex = rcJobListModel->data(rcJobIndex, RCJobListModel::jobIndexRole).toInt();
|
||||
rcJobCommand = rcJobListModel->data(rcJobIndex, RCJobListModel::displayNameRole).toString();
|
||||
rcJobState = rcJobListModel->data(rcJobIndex, RCJobListModel::stateRole).toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user