VirtualBox

忽略:
時間撮記:
2015-5-4 下午01:39:18 (10 年 以前)
作者:
vboxsync
訊息:

Removed 106 #ifdef/#ifndef VBOX_WITH_GUEST_CONTROL statements that was never really necessary.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp

    r55535 r55645  
    1 
    21/* $Id$ */
    32/** @file
     
    65
    76/*
    8  * Copyright (C) 2012-2013 Oracle Corporation
     7 * Copyright (C) 2012-2015 Oracle Corporation
    98 *
    109 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2120*   Header Files                                                               *
    2221*******************************************************************************/
     22#ifndef VBOX_WITH_GUEST_CONTROL
     23# error "VBOX_WITH_GUEST_CONTROL must defined in this file"
     24#endif
    2325#include "GuestDirectoryImpl.h"
    2426#include "GuestSessionImpl.h"
     
    7375    AssertReturn(autoInitSpan.isOk(), E_FAIL);
    7476
    75 #ifndef VBOX_WITH_GUEST_CONTROL
    76     autoInitSpan.setSucceeded();
    77     return VINF_SUCCESS;
    78 #else
    7977    int vrc = bindToSession(pConsole, pSession, uDirID /* Object ID */);
    8078    if (RT_SUCCESS(vrc))
     
    124122
    125123    return vrc;
    126 #endif /* VBOX_WITH_GUEST_CONTROL */
    127124}
    128125
     
    265262HRESULT GuestDirectory::close()
    266263{
    267 #ifndef VBOX_WITH_GUEST_CONTROL
    268     ReturnComNotImplemented();
    269 #else
    270264    LogFlowThisFuncEnter();
    271265
     
    305299    LogFlowThisFunc(("Returning rc=%Rrc\n", rc));
    306300    return hr;
    307 #endif /* VBOX_WITH_GUEST_CONTROL */
    308301}
    309302
    310303HRESULT GuestDirectory::read(ComPtr<IFsObjInfo> &aObjInfo)
    311304{
    312 #ifndef VBOX_WITH_GUEST_CONTROL
    313     ReturnComNotImplemented();
    314 #else
    315305    LogFlowThisFuncEnter();
    316306
     
    407397    LogFlowThisFunc(("Returning rc=%Rrc\n", rc));
    408398    return hr;
    409 #endif /* VBOX_WITH_GUEST_CONTROL */
    410 }
    411 
     399}
     400
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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