VirtualBox

忽略:
時間撮記:
2008-12-5 下午05:20:00 (16 年 以前)
作者:
vboxsync
訊息:

Main: Cleaned up the long standing const BSTR = const (OLECHAR *) on WIn32 vs (const PRunichar) * on XPCOM clash. Cleaned up BSTR/GUID macros (IN_BSTR replaces INPTR BSTR, IN_GUID replaces INPTR GUIDPARAM, OUT_GUID replaces GUIDPARAMOUT).

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/HardDisk2Impl.cpp

    r15044 r15051  
    507507 * @param aLocaiton     Storage unit location.
    508508 */
    509 HRESULT HardDisk2::init (VirtualBox *aVirtualBox, const BSTR aFormat,
    510                          const BSTR aLocation)
     509HRESULT HardDisk2::init (VirtualBox *aVirtualBox, CBSTR aFormat,
     510                         CBSTR aLocation)
    511511{
    512512    AssertReturn (aVirtualBox != NULL, E_FAIL);
     
    587587 * @param aLocaiton     Storage unit location.
    588588 */
    589 HRESULT HardDisk2::init (VirtualBox *aVirtualBox, const BSTR aLocation)
     589HRESULT HardDisk2::init (VirtualBox *aVirtualBox, CBSTR aLocation)
    590590{
    591591    AssertReturn (aVirtualBox, E_INVALIDARG);
     
    10041004////////////////////////////////////////////////////////////////////////////////
    10051005
    1006 STDMETHODIMP HardDisk2::GetProperty (INPTR BSTR aName, BSTR *aValue)
     1006STDMETHODIMP HardDisk2::GetProperty (IN_BSTR aName, BSTR *aValue)
    10071007{
    10081008    CheckComArgStrNotEmptyOrNull (aName);
     
    10241024}
    10251025
    1026 STDMETHODIMP HardDisk2::SetProperty (INPTR BSTR aName, INPTR BSTR aValue)
     1026STDMETHODIMP HardDisk2::SetProperty (IN_BSTR aName, IN_BSTR aValue)
    10271027{
    10281028    CheckComArgStrNotEmptyOrNull (aName);
     
    10551055}
    10561056
    1057 STDMETHODIMP HardDisk2::GetProperties (INPTR BSTR aNames,
     1057STDMETHODIMP HardDisk2::GetProperties (IN_BSTR aNames,
    10581058                                       ComSafeArrayOut (BSTR, aReturnNames),
    10591059                                       ComSafeArrayOut (BSTR, aReturnValues))
     
    10881088}
    10891089
    1090 STDMETHODIMP HardDisk2::SetProperties (ComSafeArrayIn (INPTR BSTR, aNames),
    1091                                        ComSafeArrayIn (INPTR BSTR, aValues))
     1090STDMETHODIMP HardDisk2::SetProperties (ComSafeArrayIn (IN_BSTR, aNames),
     1091                                       ComSafeArrayIn (IN_BSTR, aValues))
    10921092{
    10931093    CheckComArgSafeArrayNotNull (aNames);
     
    11001100    AutoMultiWriteLock2 alock (mVirtualBox, this);
    11011101
    1102     com::SafeArray <INPTR BSTR> names (ComSafeArrayInArg (aNames));
    1103     com::SafeArray <INPTR BSTR> values (ComSafeArrayInArg (aValues));
     1102    com::SafeArray <IN_BSTR> names (ComSafeArrayInArg (aNames));
     1103    com::SafeArray <IN_BSTR> values (ComSafeArrayInArg (aValues));
    11041104
    11051105    /* first pass: validate names */
     
    12961296}
    12971297
    1298 STDMETHODIMP HardDisk2::MergeTo (INPTR GUIDPARAM aTargetId, IProgress **aProgress)
     1298STDMETHODIMP HardDisk2::MergeTo (IN_GUID aTargetId, IProgress **aProgress)
    12991299{
    13001300    AutoCaller autoCaller (this);
     
    24322432 * @note Must be called from under this object's write lock.
    24332433 */
    2434 HRESULT HardDisk2::setLocation (const BSTR aLocation)
     2434HRESULT HardDisk2::setLocation (CBSTR aLocation)
    24352435{
    24362436    /// @todo so far, we assert but later it makes sense to support null
     
    25842584 * @note Must be called from under this object's write lock.
    25852585 */
    2586 HRESULT HardDisk2::setFormat (const BSTR aFormat)
     2586HRESULT HardDisk2::setFormat (CBSTR aFormat)
    25872587{
    25882588    /* get the format object first */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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