[graphics/krita/krita/6.0] plugins/dockers/recorder: Fix recorder export return reference misuse

Carsten Hartenfels <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 5ea52c7291a690a25641e3341019ddd410cb843f by Carsten Hartenfels.
Committed on 27/07/2026 at 17:19.
Pushed by hartenfels into branch 'krita/6.0'.

Fix recorder export return reference misuse

The code took a reference to a returned value, which is bogus.

M  +1    -1    plugins/dockers/recorder/recorder_export.cpp

https://invent.kde.org/graphics/krita/-/commit/5ea52c7291a690a25641e3341019ddd410cb843f

diff --git a/plugins/dockers/recorder/recorder_export.cpp b/plugins/dockers/recorder/recorder_export.cpp
index 16fcc515321..3e6bbd2237d 100644
--- a/plugins/dockers/recorder/recorder_export.cpp
+++ b/plugins/dockers/recorder/recorder_export.cpp
@@ -111,7 +111,7 @@ public:
     {
         QDir dir(settings->inputDirectory, "*." % RecorderFormatInfo::fileExtension(settings->format),
                 QDir::Name, QDir::Files | QDir::NoDotAndDotDot);
-        const QStringList &frames = dir.entryList(); // dir.count() calls entryList().count() internally
+        QStringList frames = dir.entryList(); // dir.count() calls entryList().count() internally
         settings->framesCount = frames.count();
         if (settings->framesCount != 0) {
             const QString &fileName = settings->inputDirectory % QDir::separator() % frames.last();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.