1 Star 0 Fork 6

liubuguiii/src-kiran-session-guard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0006-fix-compile-warning-Fixed-some-compilation-warnings.patch 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
liubuguiii 提交于 2024-01-18 11:52 . 同步更新,修复BUG
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 6/7] 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.27.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liubuguiii/src-kiran-session-guard.git
git@gitee.com:liubuguiii/src-kiran-session-guard.git
liubuguiii
src-kiran-session-guard
src-kiran-session-guard
master

搜索帮助