VirtualBox

Changeset 24888 in vbox for trunk/src


Ignore:
Timestamp:
Nov 24, 2009 9:20:57 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55160
Message:

Create CpuIdTree xml element only when necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r24858 r24888  
    24622462        pelmCPU->createChild("SyntheticCpu")->setAttribute("enabled", hw.fSyntheticCpu);
    24632463    pelmCPU->setAttribute("count", hw.cCPUs);
    2464     xml::ElementNode *pelmCpuIdTree = pelmCPU->createChild("CpuIdTree");
     2464    xml::ElementNode *pelmCpuIdTree = NULL;
    24652465    for (CpuIdLeafsList::const_iterator it = hw.llCpuIdLeafs.begin();
    24662466         it != hw.llCpuIdLeafs.end();
     
    24682468    {
    24692469        const CpuIdLeaf &leaf = *it;
     2470
     2471        if (pelmCpuIdTree == NULL)
     2472             pelmCpuIdTree = pelmCPU->createChild("CpuIdTree");
    24702473
    24712474        xml::ElementNode *pelmCpuIdLeaf = pelmCpuIdTree->createChild("CpuIdLeaf");
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette