fix: detected error 'stack-use-after-scope'
Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
parent
e6cd2c5df1
commit
a929bed0b2
@ -28,7 +28,7 @@ if(DDE_AM_USE_DEBUG_DBUS_NAME)
|
||||
endif()
|
||||
|
||||
if(PROFILING_MODE)
|
||||
add_compile_definitions(-DDPROFILING_MODE)
|
||||
add_compile_definitions(-DPROFILING_MODE)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
@ -433,7 +433,7 @@ QStringMap ApplicationService::icons() const noexcept
|
||||
QStringMap ret;
|
||||
auto actionList = actions();
|
||||
for (const auto &action : actionList) {
|
||||
const auto &actionKey = QString{action}.prepend(DesktopFileActionKey);
|
||||
auto actionKey = QString{action}.prepend(DesktopFileActionKey);
|
||||
auto value = m_entry->value(actionKey, "Icon");
|
||||
if (!value.has_value()) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user