forked from qt-creator/qt-creator
PythonEditor: Modernize
modernize-* Change-Id: I3d8a79b59822f9d13f90730b770121dbf582da84 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
@@ -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)
|
||||
|
@@ -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;
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user