CppTools: Remove some pointless declarations

* Unneeded private declared constructors
* Q_DISABLE_COPY for classes deriving from QObject (not copyable)

Change-Id: I89669e8bb062cda16bab5812e2ac591f9dcf4af2
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-07-08 11:12:25 +02:00
parent b8b50a21dd
commit cb61a8a9aa
6 changed files with 0 additions and 8 deletions

View File

@@ -41,8 +41,6 @@ namespace CppTools {
class CPPTOOLS_EXPORT BaseEditorDocumentParser : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(BaseEditorDocumentParser)
BaseEditorDocumentParser();
public:
BaseEditorDocumentParser(const QString &filePath);

View File

@@ -49,8 +49,6 @@ namespace CppTools {
class CPPTOOLS_EXPORT BaseEditorDocumentProcessor : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(BaseEditorDocumentProcessor)
BaseEditorDocumentProcessor();
public:
BaseEditorDocumentProcessor(TextEditor::TextDocument *document);

View File

@@ -42,7 +42,6 @@ namespace CppTools {
class CPPTOOLS_EXPORT BuiltinEditorDocumentProcessor : public BaseEditorDocumentProcessor
{
Q_OBJECT
BuiltinEditorDocumentProcessor();
public:
BuiltinEditorDocumentProcessor(TextEditor::TextDocument *document,

View File

@@ -51,7 +51,6 @@ namespace CppTools {
class CPPTOOLS_EXPORT CppEditorOutline : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(CppEditorOutline)
public:
explicit CppEditorOutline(TextEditor::TextEditorWidget *editorWidget);

View File

@@ -43,7 +43,6 @@ class SemanticInfoUpdaterPrivate;
class SemanticInfoUpdater : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(SemanticInfoUpdater)
public:
explicit SemanticInfoUpdater();

View File

@@ -49,7 +49,6 @@ namespace CppTools {
class CPPTOOLS_EXPORT SemanticHighlighter : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(SemanticHighlighter)
public:
enum Kind {