chore: fix shadowed member and signed/unsigned mismatch
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: supress unused with [[maybe_unused]] Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: unshadow ^&^& static_cast implicit return Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: deshadow and mark unused in parse task Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: mark unused in folder models Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: deshadow and mark unused with instances Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: more deshadow and unused Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: remove uneeded simicolons Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: mark unused Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> chore: prevent shadow Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
@ -334,7 +334,7 @@ POTranslator::~POTranslator()
|
||||
delete d;
|
||||
}
|
||||
|
||||
QString POTranslator::translate(const char* context, const char* sourceText, const char* disambiguation, int n) const
|
||||
QString POTranslator::translate(const char* context, const char* sourceText, const char* disambiguation, [[maybe_unused]] int n) const
|
||||
{
|
||||
if(disambiguation)
|
||||
{
|
||||
|
@ -267,9 +267,7 @@ void readIndex(const QString & path, QMap<QString, Language>& languages)
|
||||
try
|
||||
{
|
||||
data = FS::read(path);
|
||||
}
|
||||
catch (const Exception &e)
|
||||
{
|
||||
} catch ([[maybe_unused]] const Exception& e) {
|
||||
qCritical() << "Translations Download Failed: index file not readable";
|
||||
return;
|
||||
}
|
||||
@ -307,9 +305,7 @@ void readIndex(const QString & path, QMap<QString, Language>& languages)
|
||||
|
||||
languages.insert(lang.key, lang);
|
||||
}
|
||||
}
|
||||
catch (Json::JsonException & e)
|
||||
{
|
||||
} catch ([[maybe_unused]] Json::JsonException& e) {
|
||||
qCritical() << "Translations Download Failed: index file could not be parsed as json";
|
||||
}
|
||||
}
|
||||
@ -498,12 +494,12 @@ QVariant TranslationsModel::headerData(int section, Qt::Orientation orientation,
|
||||
return QAbstractListModel::headerData(section, orientation, role);
|
||||
}
|
||||
|
||||
int TranslationsModel::rowCount(const QModelIndex& parent) const
|
||||
int TranslationsModel::rowCount([[maybe_unused]] const QModelIndex& parent) const
|
||||
{
|
||||
return d->m_languages.size();
|
||||
}
|
||||
|
||||
int TranslationsModel::columnCount(const QModelIndex& parent) const
|
||||
int TranslationsModel::columnCount([[maybe_unused]] const QModelIndex& parent) const
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user