VirtualBox

Changeset 30610 in vbox


Ignore:
Timestamp:
Jul 5, 2010 12:47:57 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63336
Message:

Naming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r30093 r30610  
    77
    88/*
    9  * Copyright (C) 2006-2008 Oracle Corporation
     9 * Copyright (C) 2006-2010 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    563563        /** @todo Copy void* buffer contents! */
    564564
    565         /* Was progress canceled before? */
    566         BOOL fCanceled;
     565        /* Was progress cancelled before? */
     566        BOOL fCancelled;
    567567        ComAssert(it->second.pProgress.isNotNull());
    568         it->second.pProgress->COMGETTER(Canceled)(&fCanceled);
     568        it->second.pProgress->COMGETTER(Canceled)(&fCancelled);
    569569
    570570        Utf8Str errMsg;
    571         if (!fCanceled)
     571        if (!fCancelled)
    572572        {
    573573            /* Do progress handling. */
     
    642642        }
    643643        else
    644             errMsg = Utf8StrFmt(Guest::tr("Process execution canceled"));
     644            errMsg = Utf8StrFmt(Guest::tr("Process execution cancelled"));
    645645
    646646        if (!it->second.pProgress->getCompleted())
    647647        {
    648648            if (   errMsg.length()
    649                 || fCanceled) /* If cancelled we have to report E_FAIL! */
     649                || fCancelled) /* If cancelled we have to report E_FAIL! */
    650650            {
    651651                it->second.pProgress->notifyComplete(VBOX_E_IPRT_ERROR, COM_IIDOF(IGuest),
     
    697697        }
    698698
    699         /* Was progress canceled before? */
    700         BOOL fCanceled;
     699        /* Was progress cancelled before? */
     700        BOOL fCancelled;
    701701        ComAssert(it->second.pProgress.isNotNull());
    702         it->second.pProgress->COMGETTER(Canceled)(&fCanceled);
    703 
    704         if (!fCanceled)
     702        it->second.pProgress->COMGETTER(Canceled)(&fCancelled);
     703
     704        if (!fCancelled)
    705705            it->second.pProgress->notifyComplete(S_OK);
    706706        else
     
    761761        if (!fCompleted)
    762762        {
    763             /* Only cancel if not canceled before! */
    764             BOOL fCanceled;
    765             if (SUCCEEDED(it->second.pProgress->COMGETTER(Canceled)(&fCanceled)) && !fCanceled)
     763            /* Only cancel if not cancelled before! */
     764            BOOL fCancelled;
     765            if (SUCCEEDED(it->second.pProgress->COMGETTER(Canceled)(&fCancelled)) && !fCancelled)
    766766                it->second.pProgress->Cancel();
    767767
    768768            /* To get waitForCompletion notified we have to notify it if necessary. */
    769769            it->second.pProgress->notifyComplete(VBOX_E_IPRT_ERROR, COM_IIDOF(IGuest),
    770                                           (CBSTR)Guest::getComponentName(), Guest::tr("The operation was canceled during shutdown"));
     770                                          (CBSTR)Guest::getComponentName(), Guest::tr("The operation was cancelled during shutdown"));
    771771        }
    772772        /*
     
    999999                 */
    10001000                CallbackMapIter it = getCtrlCallbackContextByID(uContextID);
    1001                 BOOL fCanceled = FALSE;
     1001                BOOL fCancelled = FALSE;
    10021002                if (it != mCallbackMap.end())
    10031003                {
     
    10111011                    if (SUCCEEDED(rc))
    10121012                    {
    1013                         /* Was the operation canceled by one of the parties? */
    1014                         rc = it->second.pProgress->COMGETTER(Canceled)(&fCanceled);
     1013                        /* Was the operation cancelled by one of the parties? */
     1014                        rc = it->second.pProgress->COMGETTER(Canceled)(&fCancelled);
    10151015                        if (FAILED(rc)) throw rc;
    10161016
    1017                         if (!fCanceled)
     1017                        if (!fCancelled)
    10181018                        {
    10191019                            AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     
    10591059                            }
    10601060                        }
    1061                         else /* Operation was canceled. */
     1061                        else /* Operation was cancelled. */
    10621062                            vrc = VERR_CANCELLED;
    10631063                    }
     
    10991099                        {
    11001100                            rc = setError(VBOX_E_IPRT_ERROR,
    1101                                           tr("The execution operation was canceled"));
     1101                                          tr("The execution operation was cancelled"));
    11021102                        }
    11031103                        else if (vrc == VERR_PERMISSION_DENIED)
     
    12481248             */
    12491249            CallbackMapIter it = getCtrlCallbackContextByID(uContextID);
    1250             BOOL fCanceled = FALSE;
     1250            BOOL fCancelled = FALSE;
    12511251            if (it != mCallbackMap.end())
    12521252            {
     
    12571257                if (FAILED(rc)) throw rc;
    12581258
    1259                 /* Was the operation canceled by one of the parties? */
    1260                 rc = it->second.pProgress->COMGETTER(Canceled)(&fCanceled);
     1259                /* Was the operation cancelled by one of the parties? */
     1260                rc = it->second.pProgress->COMGETTER(Canceled)(&fCancelled);
    12611261                if (FAILED(rc)) throw rc;
    12621262
    1263                 if (!fCanceled)
     1263                if (!fCancelled)
    12641264                {
    12651265                    BOOL fCompleted;
     
    12901290                        vrc = VERR_TIMEOUT;
    12911291                }
    1292                 else /* Operation was canceled. */
     1292                else /* Operation was cancelled. */
    12931293                {
    12941294                    vrc = VERR_CANCELLED;
     
    13101310                    {
    13111311                        rc = setError(VBOX_E_IPRT_ERROR,
    1312                                       tr("The output operation was canceled"));
     1312                                      tr("The output operation was cancelled"));
    13131313                    }
    13141314                    else
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