VirtualBox

Changeset 86537 in vbox for trunk/src


Ignore:
Timestamp:
Oct 12, 2020 9:33:02 AM (4 years ago)
Author:
vboxsync
Message:

tstClipboardGH-X11.cpp: 'j' isn't a good variable name. 'i' does not need to be initialized twice and should have the same type as the for loop limit variable. bugref:9804

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/testcase/tstClipboardGH-X11.cpp

    r85845 r86537  
    187187{
    188188    Atom atom = 0;
    189     unsigned i = 0;
    190     const size_t j = clipReportMaxX11Formats();
    191 
    192     for (i = 0; i < j; ++i)
     189    const size_t const cFormats = clipReportMaxX11Formats();
     190    size_t i;
     191    for (i = 0; i < cFormats; ++i)
    193192    {
    194193        if (!strcmp(pcsz, g_aFormats[i].pcszAtom))
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