Make QProcessEnvironment(Initialization) noexcept
Use default noexcept constructor to initialize `d` member. Document Initialization enum. Fixes: QTBUG-100695 Pick-to: 6.3 Change-Id: I7585ad154a9be40021a205b515ffa7b14f188d67 Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
5958c28d9f
commit
4082fe8a39
@ -147,16 +147,28 @@ void QProcessEnvironmentPrivate::insert(const QProcessEnvironmentPrivate &other)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\enum QProcessEnvironment::Initialization
|
||||||
|
|
||||||
|
This enum contains a token that is used to disambiguate constructors.
|
||||||
|
|
||||||
|
\value InheritFromParent A QProcessEnvironment will be created that, when
|
||||||
|
set on a QProcess, causes it to inherit variables from its parent.
|
||||||
|
|
||||||
|
\since 6.3
|
||||||
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Creates a new QProcessEnvironment object. This constructor creates an
|
Creates a new QProcessEnvironment object. This constructor creates an
|
||||||
empty environment. If set on a QProcess, this will cause the current
|
empty environment. If set on a QProcess, this will cause the current
|
||||||
environment variables to be removed.
|
environment variables to be removed (except for PATH and SystemRoot
|
||||||
|
on Windows).
|
||||||
*/
|
*/
|
||||||
QProcessEnvironment::QProcessEnvironment() : d(new QProcessEnvironmentPrivate) { }
|
QProcessEnvironment::QProcessEnvironment() : d(new QProcessEnvironmentPrivate) { }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Creates an object that when set on QProcess will cause it to be executed with
|
Creates an object that when set on QProcess will cause it to be executed with
|
||||||
environment variables inherited from the parent process.
|
environment variables inherited from its parent process.
|
||||||
|
|
||||||
\note The created object does not store any environment variables by itself,
|
\note The created object does not store any environment variables by itself,
|
||||||
it just indicates to QProcess to arrange for inheriting the environment at the
|
it just indicates to QProcess to arrange for inheriting the environment at the
|
||||||
@ -172,7 +184,7 @@ QProcessEnvironment::QProcessEnvironment() : d(new QProcessEnvironmentPrivate) {
|
|||||||
\sa inheritsFromParent(), systemEnvironment()
|
\sa inheritsFromParent(), systemEnvironment()
|
||||||
\since 6.3
|
\since 6.3
|
||||||
*/
|
*/
|
||||||
QProcessEnvironment::QProcessEnvironment(QProcessEnvironment::Initialization) : d(nullptr) { }
|
QProcessEnvironment::QProcessEnvironment(QProcessEnvironment::Initialization) noexcept { }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Frees the resources associated with this QProcessEnvironment object.
|
Frees the resources associated with this QProcessEnvironment object.
|
||||||
|
@ -68,7 +68,7 @@ public:
|
|||||||
enum Initialization { InheritFromParent };
|
enum Initialization { InheritFromParent };
|
||||||
|
|
||||||
QProcessEnvironment();
|
QProcessEnvironment();
|
||||||
QProcessEnvironment(Initialization);
|
QProcessEnvironment(Initialization) noexcept;
|
||||||
QProcessEnvironment(const QProcessEnvironment &other);
|
QProcessEnvironment(const QProcessEnvironment &other);
|
||||||
~QProcessEnvironment();
|
~QProcessEnvironment();
|
||||||
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QProcessEnvironment)
|
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QProcessEnvironment)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user