Avoid signed/unsigned comparison warnings.

Also declare the variable only used inside the loop in the loop statement
itself.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-09-23 17:45:01 +00:00
parent 367210aded
commit db2ecf57cc

View File

@ -263,10 +263,9 @@ void GetClipboardData(Display* disp, Window win, wxDataObject &data, wxDataForma
atomVector.push_back(XA_IMAGE_TIFF);
atomVector.push_back(XA_IMAGE_PNG);
int i;
// check the four atoms in clipboard, try to find whether there has data
// stored in one of these atom.
for ( i = 0; i < atomVector.size(); i++ )
for ( unsigned i = 0; i < atomVector.size(); i++ )
{
clipbrdData = GetClipboardDataByFormat(disp, win, XA_CLIPBOARD,
@ -353,8 +352,7 @@ extern "C" void wxClipboardHandleSelectionRequest(XEvent event)
wxDataFormat dfFormat = wxDF_TEXT;
#endif
int i;
for ( i = 0; i <= atomVector.size(); i++ )
for ( unsigned i = 0; i <= atomVector.size(); i++ )
{
if ( target == atomVector.at(i) )
{