VirtualBox

Changeset 13856

Show
Ignore:
Timestamp:
11/05/08 14:30:07 (2 months ago)
Author:
vboxsync
Message:

Main: typos

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/VBox/com/ErrorInfo.h

    r13580 r13856  
    5353 *  the current thread is cleared. 
    5454 * 
    55  *  There is no sence to use instances of this class after the last 
     55 *  There is no sense to use instances of this class after the last 
    5656 *  invoked interface method returns a success. 
    5757 * 
     
    307307 
    308308    /** 
    309      *  Constructs a new instance by fetchig error information from the 
     309     *  Constructs a new instance by fetching error information from the 
    310310     *  IProgress interface pointer. If the progress object is not NULL, 
    311311     *  its completed attribute is true, resultCode represents a failure, 
     
    330330 * 
    331331 *  Instead of calling #restore() explicitly you may let the object destructor 
    332  *  do it for you, if you correctly limit the object's lifeime. 
     332 *  do it for you, if you correctly limit the object's lifetime. 
    333333 * 
    334334 *  The usage pattern is: 
  • trunk/include/VBox/com/SupportErrorInfo.h

    r13580 r13856  
    8383 * error or warning but continues its execution, the functionality provided 
    8484 * by the base com::FWResult class becomes very useful because it allows to 
    85  * preseve the error or the warning result code even if it is later assigned 
     85 * preserve the error or the warning result code even if it is later assigned 
    8686 * a S_OK value multiple times. See com::FWResult for details. 
    8787 * 
     
    137137         * it in case of expressions like |MultiResult rc = E_FAIL;|. But 
    138138         * we assert since the optimizer should actually avoid the 
    139          * temporary and call the other constructor directly istead. */ 
     139         * temporary and call the other constructor directly instead. */ 
    140140        AssertFailed(); 
    141141    } 
     
    154154         * it in case of expressions like |MultiResult rc = E_FAIL;|. But 
    155155         * we assert since the optimizer should actually avoid the 
    156          * temporary and call the other constructor directly istead. */ 
     156         * temporary and call the other constructor directly instead */ 
    157157        AssertFailed(); 
    158158        return *this; 
     
    210210 * 
    211211 * Basic error info support includes a group of setError() methods to set 
    212  * extended error information on the current thread. This support doesn not 
     212 * extended error information on the current thread. This support does not 
    213213 * include all necessary implementation details (for example, implementation of 
    214214 * the ISupportErrorInfo interface on MS COM) to make the error info support 
     
    273273     * </pre> 
    274274     * 
    275      * Note that this is a generic mehtod. There are more convenient overloaded 
     275     * Note that this is a generic method. There are more convenient overloaded 
    276276     * versions that automatically substitute some arguments taking their 
    277277     * values from the template parameters. See #setError (HRESULT, const char 
     
    304304     * IVirtualBoxErrorInfo object. 
    305305     * 
    306      * The error severity bit is always cleared by this call, thereofe you can 
    307      * use ordinary E_XXX result code constancs, for convenience. However, this 
    308      * behavior may be non-stanrard on some COM platforms. 
     306     * The error severity bit is always cleared by this call, thereof you can 
     307     * use ordinary E_XXX result code constants, for convenience. However, this 
     308     * behavior may be non-standard on some COM platforms. 
    309309     */ 
    310310    static HRESULT setWarning (HRESULT aResultCode, const GUID &aIID, 
  • trunk/include/VBox/com/array.h

    r13648 r13856  
    156156 * SafeConstGUIDArray, customized SafeArray<> specializations. 
    157157 * 
    158  * Also note that in order to pass input BSTR array parameters delcared 
     158 * Also note that in order to pass input BSTR array parameters declared 
    159159 * using the ComSafeArrayIn (INPTR BSTR, aParam) macro to the SafeArray<> 
    160160 * constructor using the ComSafeArrayInArg() macro, you should use INPTR BSTR 
     
    181181 * Wraps the given com::SafeArray instance to generate an expression that is 
    182182 * suitable for passing it to functions that take input safearray parameters 
    183  * declared using the ComSafeArrayIn marco. 
     183 * declared using the ComSafeArrayIn macro. 
    184184 * 
    185185 * @param aArray    com::SafeArray instance to pass as an input parameter. 
     
    191191 * Wraps the given com::SafeArray instance to generate an expression that is 
    192192 * suitable for passing it to functions that take output safearray parameters 
    193  * declared using the ComSafeArrayOut marco. 
     193 * declared using the ComSafeArrayOut macro. 
    194194 * 
    195195 * @param aArray    com::SafeArray instance to pass as an output parameter. 
     
    486486 * resources occupied by individual elements of the array as well as by the 
    487487 * array itself. However, when the value of an element is manually changed 
    488  * using #operator[] or by acessing array data through the #raw() pointer, it is 
     488 * using #operator[] or by accessing array data through the #raw() pointer, it is 
    489489 * the caller's responsibility to free resources occupied by the previous 
    490490 * element's value. 
     
    496496 * use normal list/vector classes for that. 
    497497 * 
    498  * @note The current implementation supports only one-dimentional arrays. 
     498 * @note The current implementation supports only one-dimensional arrays. 
    499499 * 
    500500 * @note This class is not thread-safe. 
     
    610610    /** 
    611611     * Resets this instance to null and, if this instance is not a weak one, 
    612      * releases any resources ocuppied by the array data. 
     612     * releases any resources occupied by the array data. 
    613613     * 
    614614     * @note This method destroys (cleans up) all elements of the array using 
     
    727727     * instance is null or if the index is out of bounds. 
    728728     * 
    729      * @note For weak instances, this call will succeed but the beiavior of 
     729     * @note For weak instances, this call will succeed but the behavior of 
    730730     *       changing the contents of an element of the weak array instance is 
    731731     *       undefined and may lead to a program crash on some platforms. 
     
    843843#if defined (VBOX_WITH_XPCOM) 
    844844 
    845     /** Internal funciton. Never call it directly. */ 
     845    /** Internal function. Never call it directly. */ 
    846846    PRUint32 *__asOutParam_Size() { setNull(); return &m.size; } 
    847847 
    848     /** Internal funciton. Never call it directly. */ 
     848    /** Internal function Never call it directly. */ 
    849849    T **__asOutParam_Arr() { Assert (isNull()); return &m.arr; } 
    850850 
    851851#else /* defined (VBOX_WITH_XPCOM) */ 
    852852 
    853     /** Internal funciton. Never call it directly. */ 
     853    /** Internal function Never call it directly. */ 
    854854    SAFEARRAY ** __asInParam() { return &m.arr; } 
    855855 
    856     /** Internal funciton. Never call it directly. */ 
     856    /** Internal function Never call it directly. */ 
    857857    SAFEARRAY ** __asOutParam() { setNull(); return &m.arr; } 
    858858 
     
    961961 * and out arrays are |nsID ***|. Due to this difference, it is impossible to 
    962962 * work with arrays of GUID on both platforms by simply using com::SafeArray 
    963  * <GUID>. This class is intended to provide some leve of cross-platform 
     963 * <GUID>. This class is intended to provide some level of cross-platform 
    964964 * behavior. 
    965965 * 
     
    10521052 * 
    10531053 * This class is used to work with input GUID array parameters in method 
    1054  * implementaitons. See SafeGUIDArray for more details. 
     1054 * implementations. See SafeGUIDArray for more details. 
    10551055 */ 
    10561056class SafeConstGUIDArray : public SafeArray <const nsID *, 
  • trunk/include/VBox/com/assert.h

    r13183 r13856  
    288288/** 
    289289 *  Asserts the given expression is true. When the expression is false, prints 
    290  *  a line containing the failied function/line/file; otherwise does nothing. 
     290 *  a line containing the failed function/line/file; otherwise does nothing. 
    291291 */ 
    292292#define ASSERT(expr) \ 
  • trunk/include/VBox/com/com.h

    r8155 r13856  
    5555 *  Resolves a given interface ID to a string containing the interface name. 
    5656 *  If, for some reason, the given IID cannot be resolved to a name, a NULL 
    57  *  string is returned. A non-NULL string returned by this funciton must be 
     57 *  string is returned. A non-NULL string returned by this function must be 
    5858 *  freed using SysFreeString(). 
    5959 * 
     
    6363void GetInterfaceNameByIID (const GUID &aIID, BSTR *aName); 
    6464 
    65 /**  
     65/** 
    6666 *  Returns the VirtualBox user home directory. 
    6767 * 
    6868 *  On failure, this function will return a path that caused a failure (or 
    69  *  NULL if the faiulre is not path-related). 
     69 *  NULL if the failure is not path-related). 
    7070 * 
    7171 *  On success, this function will try to create the returned directory if it 
  • trunk/include/VBox/com/ptr.h

    r9332 r13856  
    229229 
    230230    /** 
    231      *  Derefereces the instance (redirects the -> operator to the managed 
     231     *  Dereferences the instance (redirects the -> operator to the managed 
    232232     *  pointer). 
    233233     */ 
     
    344344 
    345345    /** 
    346      *  Createas an in-process object of the given class ID and starts to 
     346     *  Creates an in-process object of the given class ID and starts to 
    347347     *  manage a reference to the created object in case of success. 
    348348     */ 
     
    368368 
    369369    /** 
    370      *  Createas a local (out-of-process) object of the given class ID and starts 
     370     *  Creates a local (out-of-process) object of the given class ID and starts 
    371371     *  to manage a reference to the created object in case of success. 
    372372     * 
     
    394394#ifdef VBOX_WITH_XPCOM 
    395395    /** 
    396      *  Createas an object of the given class ID on the specified server and 
     396     *  Creates an object of the given class ID on the specified server and 
    397397     *  starts to manage a reference to the created object in case of success. 
    398398     * 
  • trunk/include/VBox/com/string.h

    r13580 r13856  
    284284/** 
    285285 *  Helper class that represents UTF8 (|char *|) strings. Useful in 
    286  *  conjunction with Bstr to simplify conversions beetween UTF16 (|BSTR|) 
     286 *  conjunction with Bstr to simplify conversions between UTF16 (|BSTR|) 
    287287 *  and UTF8. 
    288288 * 
     
    629629 
    630630/** 
    631  * THe BstrFmt class is a shortcut to <tt>Bstr (Utf8StrFmt (...))</tt>. 
     631 * The BstrFmt class is a shortcut to <tt>Bstr (Utf8StrFmt (...))</tt>. 
    632632 */ 
    633633class BstrFmt : public Bstr 
     
    652652 
    653653/** 
    654  * THe BstrFmtVA class is a shortcut to <tt>Bstr (Utf8StrFmtVA (...))</tt>. 
     654 * The BstrFmtVA class is a shortcut to <tt>Bstr (Utf8StrFmtVA (...))</tt>. 
    655655 */ 
    656656class BstrFmtVA : public Bstr 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy