Skip to content

Commit a81956f

Browse files
rouaultnyalldawson
authored andcommittedApr 10, 2023
qtermwidget: declare deleted assignment operator as the class has pointer member variables
1 parent 58bdb1b commit a81956f

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed
 

‎src/plugins/grass/qtermwidget/Filter.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ class QTERMWIDGET_EXPORT UrlFilter : public RegExpFilter
275275
UrlType urlType() const;
276276

277277
FilterObject* _urlObject;
278+
279+
HotSpot( const HotSpot& ) = delete;
280+
HotSpot& operator= ( const HotSpot& ) = delete;
278281
};
279282

280283
UrlFilter();

‎src/plugins/grass/qtermwidget/KeyboardTranslator.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ class KeyboardTranslatorReader
420420
QString _description;
421421
KeyboardTranslator::Entry _nextEntry;
422422
bool _hasNext;
423+
424+
KeyboardTranslatorReader(const KeyboardTranslatorReader&) = delete;
425+
KeyboardTranslatorReader& operator=(const KeyboardTranslatorReader&) = delete;
423426
};
424427

425428
/** Writes a keyboard translation to disk. */
@@ -444,6 +447,9 @@ class KeyboardTranslatorWriter
444447
private:
445448
QIODevice* _destination;
446449
QTextStream* _writer;
450+
451+
KeyboardTranslatorWriter(const KeyboardTranslatorWriter&) = delete;
452+
KeyboardTranslatorWriter& operator=(const KeyboardTranslatorWriter&) = delete;
447453
};
448454

449455
/**

‎src/plugins/grass/qtermwidget/Screen.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ class Screen
688688
unsigned short lastDrawnChar;
689689

690690
static Character defaultChar;
691+
691692
};
692693

693694
}

‎src/plugins/grass/qtermwidget/kpty.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ class KPty {
188188
* @internal
189189
*/
190190
KPtyPrivate * const d_ptr;
191+
191192
};
192193

193194
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.