diff options
Diffstat (limited to 'kde-apps/katomic/files/katomic-19.08.3-qt-5.14-1.patch')
-rw-r--r-- | kde-apps/katomic/files/katomic-19.08.3-qt-5.14-1.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/kde-apps/katomic/files/katomic-19.08.3-qt-5.14-1.patch b/kde-apps/katomic/files/katomic-19.08.3-qt-5.14-1.patch new file mode 100644 index 000000000000..6dc49d2e100b --- /dev/null +++ b/kde-apps/katomic/files/katomic-19.08.3-qt-5.14-1.patch @@ -0,0 +1,55 @@ +From 8e1a20b26d60976afdc068f7203cf35147b94a85 Mon Sep 17 00:00:00 2001 +From: Laurent Montel <montel@kde.org> +Date: Thu, 19 Sep 2019 07:16:58 +0200 +Subject: Make it compile without deprecated method + +--- + levelset.cpp | 8 +++----- + 1 file changed, 3 insertions(+), 5 deletions(-) + +diff --git a/levelset.cpp b/levelset.cpp +index 5e001c1..98e4b6d 100644 +--- a/levelset.cpp ++++ b/levelset.cpp +@@ -176,13 +176,12 @@ const LevelData* LevelSet::levelData(int levelNum) const + const LevelData* LevelSet::readLevel(int levelNum) const + { + KConfigGroup config = m_levelsFile->group(QStringLiteral("Level")+QString::number(levelNum)); +- QString key; + + QList<LevelData::Element> elements; + + for (int j = 0; j < FIELD_SIZE; j++) + { +- key.sprintf("feld_%02d", j); ++ const QString key = QString::asprintf("feld_%02d", j); + QString line = config.readEntry(key,QString()); + + for (int i = 0; i < FIELD_SIZE; i++) +@@ -227,14 +226,13 @@ const Molecule* LevelSet::readLevelMolecule(int levelNum) const + Molecule* mol = new Molecule(); + KConfigGroup config = m_levelsFile->group(QStringLiteral("Level")+QString::number(levelNum)); + +- QString key; + + atom current; + + int atom_index = 1; + QString value; + while (true) { +- key.sprintf("atom_%c", int2atom(atom_index)); ++ const QString key = QString::asprintf("atom_%c", int2atom(atom_index)); + value = config.readEntry(key,QString()); + if (value.isEmpty()) + break; +@@ -259,7 +257,7 @@ const Molecule* LevelSet::readLevelMolecule(int levelNum) const + int max_i = -1; + for (int j = 0; j < MOLECULE_SIZE; j++) { + +- key.sprintf("mole_%d", j); ++ const QString key = QString::asprintf("mole_%d", j); + line = config.readEntry(key,QString()); + + int max_non_null_i = -1; +-- +cgit v1.1 |