aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/qtcprocess.h
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2018-07-23 10:45:40 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2018-07-24 12:21:42 +0000
commitf6943a712abd5cf1f213aeb5cb984a4ab61ae139 (patch)
tree5771391e68dd1d10e3af4cc43cf54a9b4e6de629 /src/libs/utils/qtcprocess.h
parent00c926b6b44c78c14095369aa908110a2f9e24a7 (diff)
Utils: Modernize further
Many issues, mostly in headers, were not addressed in e38410b76c40ffde33cf1ab405926cd243c4e48c modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: I320a51726db881e582b898948d53735ebb06887a Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/utils/qtcprocess.h')
-rw-r--r--src/libs/utils/qtcprocess.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libs/utils/qtcprocess.h b/src/libs/utils/qtcprocess.h
index 4ff75a7dae..44c5786661 100644
--- a/src/libs/utils/qtcprocess.h
+++ b/src/libs/utils/qtcprocess.h
@@ -106,7 +106,7 @@ public:
class QTCREATOR_UTILS_EXPORT ArgIterator {
public:
ArgIterator(QString *str, OsType osType = HostOsInfo::hostOs())
- : m_str(str), m_pos(0), m_prev(-1), m_osType(osType)
+ : m_str(str), m_osType(osType)
{}
//! Get the next argument. Returns false on encountering end of first command.
bool next();
@@ -121,7 +121,8 @@ public:
void appendArg(const QString &str);
private:
QString *m_str, m_value;
- int m_pos, m_prev;
+ int m_pos = 0;
+ int m_prev = -1;
bool m_simple;
OsType m_osType;
};
@@ -143,8 +144,8 @@ private:
QString m_command;
QString m_arguments;
Environment m_environment;
- bool m_haveEnv;
- bool m_useCtrlCStub;
+ bool m_haveEnv = false;
+ bool m_useCtrlCStub = false;
};
} // namespace Utils