Mercurial: Modernize

* Use pragma once
* Use override
* Use member initialization

Change-Id: Ibd4f3c65929932db0e44be70fd5915b921438564
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2016-02-10 11:30:49 +01:00
parent cf3c347220
commit fcdb286cec
17 changed files with 76 additions and 131 deletions

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef MERCURIALCONTROL_H
#define MERCURIALCONTROL_H
#pragma once
#include <coreplugin/iversioncontrol.h>
@@ -39,7 +38,7 @@ class MercurialClient;
// Implements just the basics of the Version Control Interface
// MercurialClient handles all the work.
class MercurialControl: public Core::IVersionControl
class MercurialControl : public Core::IVersionControl
{
Q_OBJECT
@@ -73,10 +72,8 @@ public slots:
void changed(const QVariant&);
private:
MercurialClient *mercurialClient;
MercurialClient *const mercurialClient;
};
} // namespace Internal
} // namespace Mercurial
#endif // MERCURIALCONTROL_H