summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/pythoneditor/pythoneditorplugin.cpp2
-rw-r--r--src/plugins/pythoneditor/pythonformattoken.h2
-rw-r--r--src/plugins/pythoneditor/pythonindenter.h3
-rw-r--r--src/plugins/pythoneditor/pythonscanner.h2
4 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp
index 5dd91d7067..64722ef749 100644
--- a/src/plugins/pythoneditor/pythoneditorplugin.cpp
+++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp
@@ -99,7 +99,7 @@ private:
bool saveRawList(const QStringList &rawList, const QString &fileName);
void parseProject();
QStringList processEntries(const QStringList &paths,
- QHash<QString, QString> *map = 0) const;
+ QHash<QString, QString> *map = nullptr) const;
QStringList m_rawFileList;
QStringList m_files;
diff --git a/src/plugins/pythoneditor/pythonformattoken.h b/src/plugins/pythoneditor/pythonformattoken.h
index 285fb548ac..c98f3a1fef 100644
--- a/src/plugins/pythoneditor/pythonformattoken.h
+++ b/src/plugins/pythoneditor/pythonformattoken.h
@@ -48,7 +48,7 @@ enum Format {
class FormatToken
{
public:
- FormatToken() {}
+ FormatToken() = default;
FormatToken(Format format, int position, int length)
: m_format(format), m_position(position), m_length(length)
diff --git a/src/plugins/pythoneditor/pythonindenter.h b/src/plugins/pythoneditor/pythonindenter.h
index baee5ce78f..414c5dcb25 100644
--- a/src/plugins/pythoneditor/pythonindenter.h
+++ b/src/plugins/pythoneditor/pythonindenter.h
@@ -31,9 +31,6 @@ namespace PythonEditor {
class PythonIndenter : public TextEditor::Indenter
{
-public:
- PythonIndenter() {}
-
private:
bool isElectricCharacter(const QChar &ch) const override;
int indentFor(const QTextBlock &block, const TextEditor::TabSettings &tabSettings) override;
diff --git a/src/plugins/pythoneditor/pythonscanner.h b/src/plugins/pythoneditor/pythonscanner.h
index d1633a7de2..c6844097de 100644
--- a/src/plugins/pythoneditor/pythonscanner.h
+++ b/src/plugins/pythoneditor/pythonscanner.h
@@ -37,10 +37,10 @@ namespace Internal {
*/
class Scanner
{
+public:
Scanner(const Scanner &other) = delete;
void operator=(const Scanner &other) = delete;
-public:
enum State {
State_Default,
State_String,