mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Issue #77 Break cyclic dependency between CIcon and CIconList by using CSequence<CIcon>
This commit is contained in:
@@ -32,10 +32,10 @@ namespace BlackMiscTest
|
||||
void CTestIcon::iconIndex()
|
||||
{
|
||||
const int max = static_cast<int>(CIcons::IconIsGenerated);
|
||||
QVERIFY2(CIconList::allIcons().size() == max, "Icon list size");
|
||||
QVERIFY2(CIcon::allIcons().size() == max, "Icon list size");
|
||||
|
||||
int c = 0;
|
||||
for (const CIcon &icon : CIconList::allIcons())
|
||||
for (const CIcon &icon : CIcon::allIcons())
|
||||
{
|
||||
CIcons::IconIndex ii = icon.getIndex();
|
||||
const int i = static_cast<int>(ii);
|
||||
|
||||
Reference in New Issue
Block a user