Skip to content

Commit

Permalink
qtermwidget: declare deleted assignment operator as the class has poi…
Browse files Browse the repository at this point in the history
…nter member variables
  • Loading branch information
rouault authored and nyalldawson committed Apr 10, 2023
1 parent 58bdb1b commit a81956f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/grass/qtermwidget/Filter.h
Expand Up @@ -275,6 +275,9 @@ class QTERMWIDGET_EXPORT UrlFilter : public RegExpFilter
UrlType urlType() const;

FilterObject* _urlObject;

HotSpot( const HotSpot& ) = delete;
HotSpot& operator= ( const HotSpot& ) = delete;
};

UrlFilter();
Expand Down
6 changes: 6 additions & 0 deletions src/plugins/grass/qtermwidget/KeyboardTranslator.h
Expand Up @@ -420,6 +420,9 @@ class KeyboardTranslatorReader
QString _description;
KeyboardTranslator::Entry _nextEntry;
bool _hasNext;

KeyboardTranslatorReader(const KeyboardTranslatorReader&) = delete;
KeyboardTranslatorReader& operator=(const KeyboardTranslatorReader&) = delete;
};

/** Writes a keyboard translation to disk. */
Expand All @@ -444,6 +447,9 @@ class KeyboardTranslatorWriter
private:
QIODevice* _destination;
QTextStream* _writer;

KeyboardTranslatorWriter(const KeyboardTranslatorWriter&) = delete;
KeyboardTranslatorWriter& operator=(const KeyboardTranslatorWriter&) = delete;
};

/**
Expand Down
1 change: 1 addition & 0 deletions src/plugins/grass/qtermwidget/Screen.h
Expand Up @@ -688,6 +688,7 @@ class Screen
unsigned short lastDrawnChar;

static Character defaultChar;

};

}
Expand Down
1 change: 1 addition & 0 deletions src/plugins/grass/qtermwidget/kpty.h
Expand Up @@ -188,6 +188,7 @@ class KPty {
* @internal
*/
KPtyPrivate * const d_ptr;

};

#endif
Expand Down

0 comments on commit a81956f

Please sign in to comment.