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()
|
endif()
|
||||||
|
|
||||||
if(PROFILING_MODE)
|
if(PROFILING_MODE)
|
||||||
add_compile_definitions(-DDPROFILING_MODE)
|
add_compile_definitions(-DPROFILING_MODE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
@ -433,7 +433,7 @@ QStringMap ApplicationService::icons() const noexcept
|
|||||||
QStringMap ret;
|
QStringMap ret;
|
||||||
auto actionList = actions();
|
auto actionList = actions();
|
||||||
for (const auto &action : actionList) {
|
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");
|
auto value = m_entry->value(actionKey, "Icon");
|
||||||
if (!value.has_value()) {
|
if (!value.has_value()) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user