Changeset 70110 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 13, 2017 1:53:56 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r70007 r70110 3674 3674 QString vmNameOrUuid; 3675 3675 3676 const QStringList arguments = qApp->arguments();3676 const QStringList &arguments = QCoreApplication::arguments(); 3677 3677 const int argc = arguments.size(); 3678 3678 int i = 1; 3679 3679 while (i < argc) 3680 3680 { 3681 QByteArrayargBytes = arguments.at(i).toUtf8();3681 const QByteArray &argBytes = arguments.at(i).toUtf8(); 3682 3682 const char *arg = argBytes.constData(); 3683 3683 /* NOTE: the check here must match the corresponding check for the … … 3727 3727 { 3728 3728 size_t cbFile; 3729 const char *pszFile = arguments.at(i).toLocal8Bit().constData(); 3729 const QByteArray &argFileBytes = arguments.at(i).toLocal8Bit(); 3730 const char *pszFile = argFileBytes.constData(); 3730 3731 bool fStdIn = !::strcmp(pszFile, "stdin"); 3731 3732 int vrc = VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.