Skip to content

Commit 63fb6ff

Browse files
committed
changed deprecated Qt method toAscii() to toLatin1()
1 parent 8975ced commit 63fb6ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/tmx/src/Builder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ void DataState::handleAttribute(Attribute::type attribute, const QString& value)
476476

477477
void DataState::handleData(const QString& _data)
478478
{
479-
data->setBytes(_data.toAscii());
479+
data->setBytes(_data.toLatin1());
480480
}
481481

482482
ImageState::ImageState(Image* image) : image(image)

src/GameLoader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void GameLoader::initializeAnimation(const QDomElement& element, Animation* anim
105105
QString layout = element.attribute("layout");
106106
for (int i=0; i<layout.size(); ++i)
107107
{
108-
switch (layout[i].toLower().toAscii())
108+
switch (layout[i].toLower().toLatin1())
109109
{
110110
case 'l':
111111
animation->setOffset(Animation::Left, i);

0 commit comments

Comments
 (0)