OSDN Git Service
(root)
/
kde
/
kde-workspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac3d97b
)
kscreensaver: const-ify variable
author
Ivailo Monev
<xakepa10@gmail.com>
Thu, 28 Apr 2022 09:53:37 +0000
(12:53 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Thu, 28 Apr 2022 09:53:37 +0000
(12:53 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kscreensaver/kscreensaver.cpp
patch
|
blob
|
history
diff --git
a/kscreensaver/kscreensaver.cpp
b/kscreensaver/kscreensaver.cpp
index
e1db1fb
..
eb36716
100644
(file)
--- a/
kscreensaver/kscreensaver.cpp
+++ b/
kscreensaver/kscreensaver.cpp
@@
-200,7
+200,7
@@
uint KScreenSaver::Inhibit(const QString &application_name, const QString &reaso
);
QDBusReply<uint> powerreply = poweriface.call("Inhibit", application_name, reason_for_inhibit);
if (powerreply.isValid()) {
- uint inhibitioncookie = powerreply.value();
+
const
uint inhibitioncookie = powerreply.value();
m_inhibitions.append(inhibitioncookie);
return inhibitioncookie;
}