VcsBase: Modernize headers

* Use pragma once
* Use override
* Remove Q_DECLARE_PRIVATE as that makes no sense for QtCreator

Change-Id: Ic31d4868c172a0b8fcb50cc9a71a6e95639cf84c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2016-02-03 12:15:21 +01:00
parent 96ca2e57f0
commit bb8270bab3
33 changed files with 171 additions and 298 deletions

View File

@@ -23,16 +23,15 @@
**
****************************************************************************/
#ifndef VCSBASEPLUGIN_H
#define VCSBASEPLUGIN_H
#pragma once
#include "vcsbase_global.h"
#include <extensionsystem/iplugin.h>
#include <QSharedDataPointer>
#include <QList>
#include <QProcessEnvironment>
#include <QSharedDataPointer>
QT_BEGIN_NAMESPACE
class QAction;
@@ -131,10 +130,10 @@ protected:
explicit VcsBasePlugin();
void initializeVcs(Core::IVersionControl *vc, const Core::Context &context);
void extensionsInitialized();
void extensionsInitialized() override;
public:
~VcsBasePlugin();
~VcsBasePlugin() override;
const VcsBasePluginState &currentState() const;
Core::IVersionControl *versionControl() const;
@@ -202,14 +201,11 @@ protected:
// Returns whether actions should be set up further.
bool enableMenuAction(ActionState as, QAction *in) const;
private slots:
private:
void slotSubmitEditorAboutToClose(VcsBaseSubmitEditor *submitEditor, bool *result);
void slotStateChanged(const VcsBase::Internal::State &s, Core::IVersionControl *vc);
private:
VcsBasePluginPrivate *d;
};
} // namespace VcsBase
#endif // VCSBASEPLUGIN_H