Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
xdg-desktop-portal-kde-6.6.4/src/quickdialog.cpp: scope_hint: In member function ‘void QuickDialog::create(const QString&, const QVariantMap&)’
xdg-desktop-portal-kde-6.6.4/src/quickdialog.cpp:29:24: warning[-Wdeprecated-declarations]: ‘KLocalizedContext’ is deprecated: Since 6.8. use KLocalizedQmlContext or KLocalization::setupLocalizedContext() from KF6::I18nQml instead
#   29 |     auto context = new KLocalizedContext(engine);
#      |                        ^~~~~~~~~~~~~~~~~
/usr/include/KF6/KI18n/klocalizedstring.h:21: included_from: Included from here.
/usr/include/KF6/KI18n/KLocalizedString:1: included_from: Included from here.
xdg-desktop-portal-kde-6.6.4/src/quickdialog.cpp:8: included_from: Included from here.
/usr/include/KF6/KI18n/klocalizedcontext.h:46:5: note: declared here
#   46 |     KLocalizedContext : public QObject
#      |     ^~~~~~~~~~~~~~~~~
#   27|   {
#   28|       auto engine = new QQmlApplicationEngine(this);
#   29|->     auto context = new KLocalizedContext(engine);
#   30|       context->setTranslationDomain(QStringLiteral(TRANSLATION_DOMAIN));
#   31|       engine->rootContext()->setContextObject(context);

Error: COMPILER_WARNING (CWE-477): [#def2]
xdg-desktop-portal-kde-6.6.4/src/region-select/SelectionEditor.cpp: scope_hint: In constructor ‘SelectionEditor::SelectionEditor(QObject*)’
xdg-desktop-portal-kde-6.6.4/src/region-select/SelectionEditor.cpp:89:24: warning[-Wdeprecated-declarations]: ‘KLocalizedContext’ is deprecated: Since 6.8. use KLocalizedQmlContext or KLocalization::setupLocalizedContext() from KF6::I18nQml instead
#   89 |     auto context = new KLocalizedContext(m_engine);
#      |                        ^~~~~~~~~~~~~~~~~
/usr/include/KF6/KI18n/KLocalizedContext:1: included_from: Included from here.
xdg-desktop-portal-kde-6.6.4/src/region-select/SelectionEditor.cpp:3: included_from: Included from here.
/usr/include/KF6/KI18n/klocalizedcontext.h:46:5: note: declared here
#   46 |     KLocalizedContext : public QObject
#      |     ^~~~~~~~~~~~~~~~~
#   87|       , m_engine(new QQmlApplicationEngine(this))
#   88|   {
#   89|->     auto context = new KLocalizedContext(m_engine);
#   90|       context->setTranslationDomain(QStringLiteral(TRANSLATION_DOMAIN));
#   91|       m_engine->rootContext()->setContextObject(context);

Error: COMPILER_WARNING (CWE-563): [#def3]
xdg-desktop-portal-kde-6.6.4/src/remotedesktop.cpp: scope_hint: In member function ‘void RemoteDesktopSession::setOptions(const QVariantMap&)’
xdg-desktop-portal-kde-6.6.4/src/remotedesktop.cpp:524:58: warning[-Wunused-parameter]: unused parameter ‘options’
#  524 | void RemoteDesktopSession::setOptions(const QVariantMap &options)
#      |                                       ~~~~~~~~~~~~~~~~~~~^~~~~~~
#  522|   }
#  523|   
#  524|-> void RemoteDesktopSession::setOptions(const QVariantMap &options)
#  525|   {
#  526|   }

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-147.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namexdg-desktop-portal-kde-6.7.3-2.fc45
diffbase-store-results-to/tmp/tmpk9v3yjlf/xdg-desktop-portal-kde-6.7.3-2.fc45.tar.xz
diffbase-time-created2026-08-03 21:41:29
diffbase-time-finished2026-08-03 21:45:14
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpk9v3yjlf/xdg-desktop-portal-kde-6.7.3-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpk9v3yjlf/xdg-desktop-portal-kde-6.7.3-2.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-147.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namexdg-desktop-portal-kde-6.6.4-1.fc44
store-results-to/tmp/tmp9xyxz3b2/xdg-desktop-portal-kde-6.6.4-1.fc44.tar.xz
time-created2026-08-03 21:36:42
time-finished2026-08-03 21:41:10
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp9xyxz3b2/xdg-desktop-portal-kde-6.6.4-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp9xyxz3b2/xdg-desktop-portal-kde-6.6.4-1.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9