[partition] [fsresizer] Adjust to new #define

- Using KPMCORE4API is clearer than just relying on a version number
This commit is contained in:
Adriaan de Groot 2019-04-12 11:21:18 +02:00
parent 9159761171
commit c0710cabe4
6 changed files with 9 additions and 9 deletions

View file

@ -51,7 +51,7 @@
#include <kpmcore/core/device.h>
#include <kpmcore/core/partition.h>
#ifdef WITH_KPMCOREGT33
#ifdef WITH_KPMCORE4API
#include <kpmcore/core/softwareraid.h>
#endif
@ -1224,7 +1224,7 @@ ChoicePage::setupActions()
bool atLeastOneIsMounted = false; // Suppress 'erase' if so
bool isInactiveRAID = false;
#ifdef WITH_KPMCOREGT33
#ifdef WITH_KPMCORE4API
if ( currentDevice->type() == Device::Type::SoftwareRAID_Device &&
static_cast< SoftwareRAID* >(currentDevice)->status() == SoftwareRAID::Status::Inactive )
{