VirtualBox

儲存庫 vbox 的更動 63174


忽略:
時間撮記:
2016-8-8 下午02:47:28 (8 年 以前)
作者:
vboxsync
訊息:

Main: unreachable code.

位置:
trunk/src/VBox/Main/src-server
檔案:
修改 4 筆資料

圖例:

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

    r62363 r63174  
    17881788
    17891789    }
    1790 
    1791     AssertFailedReturn("shouldn't get here");
     1790    /* not reached */
    17921791}
    17931792
  • trunk/src/VBox/Main/src-server/Performance.cpp

    r62485 r63174  
    14601460        pszPat++;
    14611461    }
    1462     return true;
     1462    /* not reached */
    14631463}
    14641464
  • trunk/src/VBox/Main/src-server/SystemPropertiesImpl.cpp

    r62485 r63174  
    950950    /** @todo not yet implemented, settings handling is missing */
    951951    ReturnComNotImplemented();
    952 
     952#if 0 /* not implemented */
    953953    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    954954    HRESULT rc = i_setDefaultAdditionsISO(aDefaultAdditionsISO);
     
    963963
    964964    return rc;
     965#endif
    965966}
    966967
  • trunk/src/VBox/Main/src-server/USBDeviceFilterImpl.cpp

    r61667 r63174  
    4141 *  @param  aStr        The output string.
    4242 */
    43 static void i_usbFilterFieldToString(PCUSBFILTER aFilter, USBFILTERIDX aIdx, Utf8Str &out)
     43static void i_usbFilterFieldToString(PCUSBFILTER aFilter, USBFILTERIDX aIdx, Utf8Str &rstrOut)
    4444{
    4545    const USBFILTERMATCH matchingMethod = USBFilterGetMatchingMethod(aFilter, aIdx);
     
    5151        Assert(value >= 0 && value <= 0xffff);
    5252
    53         out = Utf8StrFmt("%04RX16", (uint16_t)value);
     53        rstrOut = Utf8StrFmt("%04RX16", (uint16_t)value);
    5454    }
    5555    else if (USBFilterIsMethodString(matchingMethod))
    56     {
    57         out = USBFilterGetString(aFilter, aIdx);
    58     }
     56        rstrOut = USBFilterGetString(aFilter, aIdx);
    5957    else
    60         out.setNull();
     58        rstrOut.setNull();
    6159}
    6260
     
    6664    switch (aIdx)
    6765    {
    68         case USBFILTERIDX_VENDOR_ID: return tr("Vendor ID");
    69         case USBFILTERIDX_PRODUCT_ID: return tr("Product ID");
    70         case USBFILTERIDX_DEVICE: return tr("Revision");
    71         case USBFILTERIDX_MANUFACTURER_STR: return tr("Manufacturer");
    72         case USBFILTERIDX_PRODUCT_STR: return tr("Product");
    73         case USBFILTERIDX_SERIAL_NUMBER_STR: return tr("Serial number");
    74         case USBFILTERIDX_PORT: return tr("Port number");
    75         default: return "";
    76     }
    77     return "";
     66        case USBFILTERIDX_VENDOR_ID:            return tr("Vendor ID");
     67        case USBFILTERIDX_PRODUCT_ID:           return tr("Product ID");
     68        case USBFILTERIDX_DEVICE:               return tr("Revision");
     69        case USBFILTERIDX_MANUFACTURER_STR:     return tr("Manufacturer");
     70        case USBFILTERIDX_PRODUCT_STR:          return tr("Product");
     71        case USBFILTERIDX_SERIAL_NUMBER_STR:    return tr("Serial number");
     72        case USBFILTERIDX_PORT:                 return tr("Port number");
     73        default:                                return "";
     74    }
     75    /* not reached. */
    7876}
    7977
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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