diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-07-07 11:32:13 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-07-10 08:54:06 +0000 |
commit | 38799ceaf111fb44665c1dd0e33896120d175ebc (patch) | |
tree | 7c3215dad4ec9f8962c44f2a915ba7809859cf45 /src/libs/installer/elevatedexecuteoperation.cpp | |
parent | 39a56f719a24a75e303d3a34f73a9c8cb1a01a34 (diff) |
Make use of the new varadic template feature + cosmetic changes.
Change constructor to take the a package manager argument. Add a
package manager member to the operation. Remove setter function.
Change-Id: Iffb860e24089beb6496ac4ee479d547a29463728
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/elevatedexecuteoperation.cpp')
-rw-r--r-- | src/libs/installer/elevatedexecuteoperation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/installer/elevatedexecuteoperation.cpp b/src/libs/installer/elevatedexecuteoperation.cpp index a3d33e907..06bf51f82 100644 --- a/src/libs/installer/elevatedexecuteoperation.cpp +++ b/src/libs/installer/elevatedexecuteoperation.cpp @@ -64,8 +64,9 @@ public: bool showStandardError; }; -ElevatedExecuteOperation::ElevatedExecuteOperation() - : d(new Private(this)) +ElevatedExecuteOperation::ElevatedExecuteOperation(PackageManagerCore *core) + : UpdateOperation(core) + , d(new Private(this)) { // this operation has to "overwrite" the Execute operation from KDUpdater setName(QLatin1String("Execute")); |