Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b974f44 commit ce09723Copy full SHA for ce09723
src/core/desktopfile/desktopfile.cpp
@@ -173,12 +173,14 @@ namespace linuxdeploy {
173
DesktopFileEntry entry;
174
175
// this should never return false
176
- assert(getEntry(section, key, entry));
+ auto entryExists = getEntry(section, key, entry);
177
+ assert(entryExists);
178
179
ldLog() << LD_WARNING << "Key exists, not modified:" << key << "(current value:" << entry.value() << LD_NO_SPACE << ")" << std::endl;
180
rv = false;
181
} else {
- assert(!setEntry(section, std::move(DesktopFileEntry(key, value))));
182
+ auto entrySet = setEntry(section, DesktopFileEntry(key, value));
183
+ assert(entrySet);
184
}
185
};
186
0 commit comments