Skip to content

Commit 02578aa

Browse files
committed
Start: Disable copying a ThumbnailSource
1 parent 136020f commit 02578aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Mod/Start/App/ThumbnailSource.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ class ThumbnailSource: public QRunnable
5050
explicit ThumbnailSource(QString file);
5151
~ThumbnailSource() override;
5252

53+
// Don't make copies of a ThumbnailSource (it's probably running a process, what would it mean
54+
// to copy it?):
55+
ThumbnailSource(ThumbnailSource&) = delete;
56+
ThumbnailSource(ThumbnailSource&&) = delete;
57+
ThumbnailSource operator=(const ThumbnailSource&) = delete;
58+
5359
void run() override;
5460

5561
ThumbnailSourceSignals* signals();

0 commit comments

Comments
 (0)