Refactor code to use C++11 nullptr
This commit is contained in:
2
3rdparty/solid-lite/storagevolume.cpp
vendored
2
3rdparty/solid-lite/storagevolume.cpp
vendored
@@ -83,7 +83,7 @@ Solid::Device Solid::StorageVolume::encryptedContainer() const
|
||||
Ifaces::StorageVolume *iface
|
||||
= qobject_cast<Ifaces::StorageVolume*>(d->backendObject());
|
||||
|
||||
if (iface!=0) {
|
||||
if (iface!=nullptr) {
|
||||
return Device(iface->encryptedContainerUdi());
|
||||
} else {
|
||||
return Device();
|
||||
|
||||
Reference in New Issue
Block a user