Remove pointless casts

This commit is contained in:
Aleix Pol 2014-05-08 15:28:09 +02:00
parent 53893e8d0b
commit 2f027d4348

View File

@ -65,7 +65,7 @@ void ViewPrivate::setContainment(Plasma::Containment *cont)
return;
}
Plasma::Types::Location oldLoc = (Plasma::Types::Location)location();
Plasma::Types::Location oldLoc = location();
Plasma::Types::FormFactor oldForm = formFactor();
if (containment) {
@ -83,7 +83,7 @@ void ViewPrivate::setContainment(Plasma::Containment *cont)
containment = cont;
if (oldLoc != location()) {
emit q->locationChanged((Plasma::Types::Location)location());
emit q->locationChanged(location());
}
if (oldForm != formFactor()) {
emit q->formFactorChanged(formFactor());