fix: detected error 'stack-use-after-scope'
Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
		@ -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;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user