Skip to content

Commit df31685

Browse files
committed
Fix the exact stack variable but introduced by clang-tidy again.
Close #1456
1 parent abbfef4 commit df31685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/fcitx-utils/dbus/servicewatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ServiceWatcherPrivate : public TrackableObject<ServiceWatcherPrivate> {
4545
auto querySlot = bus_->serviceOwnerAsync(
4646
key, 0, [this, key](Message &msg) {
4747
// Key itself may be gone later, put it on the stack.
48-
const std::string &pivotKey = key;
48+
std::string pivotKey{key};
4949
auto protector = watch();
5050
std::string newName;
5151
if (msg.type() != dbus::MessageType::Error) {

0 commit comments

Comments
 (0)