MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / Populate

Method Populate

cppcryptfs/ui/RecentItems.cpp:56–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void
57RecentItems::Populate(CString *items, LPCTSTR initial_default)
58{
59 int i;
60 CString itemname;
61
62
63
64 if (!initial_default)
65 initial_default = TEXT("");
66
67 for (i = 0; i < m_count; i++) {
68 AppendIndex(itemname, i);
69
70 items[i] = theApp.GetProfileString(m_section, itemname,
71 i == 0 ? initial_default : TEXT(""));
72 }
73}
74
75void
76RecentItems::Add(LPCTSTR item)

Callers 2

InitInstanceMethod · 0.80
OnSetActiveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected