39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From c259d0223202a986deb3d2eec7567380e7895ce9 Mon Sep 17 00:00:00 2001
|
|
From: liuxinhao <liuxinhao@kylinsec.com.cn>
|
|
Date: Tue, 22 Aug 2023 11:47:25 +0800
|
|
Subject: [PATCH] fix(compile warning): Fixed some compilation warnings
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 修复一些编译告警
|
|
---
|
|
src/polkit-agent/dialog.cpp | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/polkit-agent/dialog.cpp b/src/polkit-agent/dialog.cpp
|
|
index 10fdbc5..6094a71 100644
|
|
--- a/src/polkit-agent/dialog.cpp
|
|
+++ b/src/polkit-agent/dialog.cpp
|
|
@@ -48,7 +48,7 @@ void AuthInfo::dump()
|
|
qDebug() << "detail key:" << key << "value:" << value;
|
|
}
|
|
qDebug() << "cookie: " << cookie;
|
|
- for (const PolkitQt1::Identity identity : identities)
|
|
+ for (const PolkitQt1::Identity& identity : identities)
|
|
{
|
|
qDebug() << "identity: " << identity.toString();
|
|
}
|
|
@@ -122,7 +122,7 @@ void Dialog::initUI()
|
|
Kiran::StylePropertyHelper::setButtonType(ui->btn_reauth, Kiran::BUTTON_Default);
|
|
|
|
switchButtonLayout(BUTTON_LAYOUT_NORMAL);
|
|
-
|
|
+
|
|
m_switcher = new AuthTypeSwitcher(EXPAND_DIRECTION_BOTTOM, 4, this);
|
|
m_switcher->setAdjustColorToTheme(true);
|
|
m_switcher->setFixedSize(QSize(42, 36));
|
|
--
|
|
2.33.0
|
|
|