Skip to content

Commit

Permalink
chore: code style
Browse files Browse the repository at this point in the history
remove unnecessary cast.
  • Loading branch information
18202781743 committed Aug 14, 2024
1 parent 40a2fe2 commit 1428917
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xcb/dnotitlebarwindowhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ void DNoTitlebarWindowHelper::setMouseInputAreaMargins(const QMarginsF &mouseInp

void DNoTitlebarWindowHelper::setWindowEffect(quint32 effectScene)
{
setProperty("windowEffect", static_cast<quint32>(effectScene));
setProperty("windowEffect", effectScene);
}

void DNoTitlebarWindowHelper::setWindowStartUpEffect(quint32 effectType)
{
setProperty("windowStartUpEffect", static_cast<quint32>(effectType));
setProperty("windowStartUpEffect", effectType);
}

void DNoTitlebarWindowHelper::updateClipPathFromProperty()
Expand Down Expand Up @@ -383,7 +383,7 @@ void DNoTitlebarWindowHelper::updateShadowColorFromProperty()
void DNoTitlebarWindowHelper::updateWindowEffectFromProperty()
{
const QVariant &v = m_window->property("_d_windowEffect");
const quint32 &effectScene = qvariant_cast<quint32>(v);
const quint32 effectScene = qvariant_cast<quint32>(v);

if (effectScene) {
setWindowEffect(effectScene);
Expand All @@ -395,7 +395,7 @@ void DNoTitlebarWindowHelper::updateWindowEffectFromProperty()
void DNoTitlebarWindowHelper::updateWindowStartUpEffectFromProperty()
{
const QVariant &v = m_window->property("_d_windowStartUpEffect");
const quint32 &effectType = qvariant_cast<quint32>(v);
const quint32 effectType = qvariant_cast<quint32>(v);

if (effectType) {
setWindowStartUpEffect(effectType);
Expand Down

0 comments on commit 1428917

Please sign in to comment.