MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / copy

Method copy

gui/applicationlist.cpp:166–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void ApplicationList::copy(const ApplicationList *list)
167{
168 if (!list) {
169 return;
170 }
171
172 clear();
173 for (int i = 0; i < list->getApplicationCount(); i++) {
174 const Application& app = list->getApplication(i);
175 addApplication(app);
176 }
177 mDefaultApplicationIndex = list->getDefaultApplication();
178}
179
180void ApplicationList::clear()
181{

Callers

nothing calls this directly

Calls 3

getDefaultApplicationMethod · 0.80
clearFunction · 0.50
getApplicationCountMethod · 0.45

Tested by

no test coverage detected