Updating PR to change lower API to return AZStd::string instead of const char* for safety.
Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
@@ -992,7 +992,7 @@ void CUiAnimViewDialog::ReloadSequencesComboBox()
|
||||
for (unsigned int k = 0; k < numSequences; ++k)
|
||||
{
|
||||
CUiAnimViewSequence* pSequence = pSequenceManager->GetSequenceByIndex(k);
|
||||
QString fullname = pSequence->GetName();
|
||||
QString fullname = QString::fromUtf8(pSequence->GetName().c_str());
|
||||
m_sequencesComboBox->addItem(fullname);
|
||||
}
|
||||
}
|
||||
@@ -1132,7 +1132,7 @@ void CUiAnimViewDialog::OnSequenceChanged(CUiAnimViewSequence* pSequence)
|
||||
|
||||
if (pSequence)
|
||||
{
|
||||
m_currentSequenceName = pSequence->GetName();
|
||||
m_currentSequenceName = QString::fromUtf8(pSequence->GetName().c_str());
|
||||
|
||||
pSequence->Reset(true);
|
||||
SaveZoomScrollSettings();
|
||||
@@ -1733,7 +1733,7 @@ void CUiAnimViewDialog::OnNodeRenamed(CUiAnimViewNode* pNode, const char* pOldNa
|
||||
{
|
||||
if (m_currentSequenceName == QString(pOldName))
|
||||
{
|
||||
m_currentSequenceName = pNode->GetName();
|
||||
m_currentSequenceName = QString::fromUtf8(pNode->GetName().c_str());
|
||||
}
|
||||
|
||||
ReloadSequencesComboBox();
|
||||
|
||||
Reference in New Issue
Block a user