VirtualBox

Changeset 10115 in vbox


Ignore:
Timestamp:
Jul 2, 2008 3:36:42 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32626
Message:

FE/Qt4-Win: build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp

    r10112 r10115  
    8585#if defined (Q_WS_X11)
    8686#include <iprt/mem.h>
     87#endif
     88
     89//#warning "port me: check this"
     90#if defined(Q_OS_WIN64)
     91typedef __int64 Q_LONG;             /* word up to 64 bit signed */
     92typedef unsigned __int64 Q_ULONG;   /* word up to 64 bit unsigned */
     93#else
     94typedef long Q_LONG;                /* word up to 64 bit signed */
     95typedef unsigned long Q_ULONG;      /* word up to 64 bit unsigned */
    8796#endif
    8897
     
    391400    QString result = aRawFilter;
    392401    QRegExp r (QString::fromLatin1 (qt_file_dialog_filter_reg_exp));
    393     int index = r.search (result);
     402    int index = r.indexIn (result);
    394403    if (index >= 0)
    395404        result = r.cap (2);
     
    406415    if (!aFilter.isEmpty())
    407416    {
    408         int i = aFilter.find (";;", 0);
     417        int i = aFilter.indexOf (";;", 0);
    409418        QString sep (";;");
    410419        if (i == -1)
    411420        {
    412             if (aFilter.find ("\n", 0) != -1)
     421            if (aFilter.indexOf ("\n", 0) != -1)
    413422            {
    414423                sep = "\n";
    415                 i = aFilter.find (sep, 0);
     424                i = aFilter.indexOf (sep, 0);
    416425            }
    417426        }
    418427
    419         filterLst = QStringList::split (sep, aFilter);
     428        filterLst = aFilter.split (sep);
    420429    }
    421430
Note: See TracChangeset for help on using the changeset viewer.

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