VirtualBox

source: vbox/trunk/src/VBox/Main/src-server/USBIdDatabaseStub.cpp@ 58005

Last change on this file since 58005 was 58001, checked in by vboxsync, 10 years ago

USBIdDatabase*: The product and vendor arrays should be const, just like the counts. If you're using hungarian for the element counts, use it for the arrays too. RT_ELEMENTS is a handy macro.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 963 bytes
Line 
1/* $Id: USBIdDatabaseStub.cpp 58001 2015-10-02 10:15:58Z vboxsync $ */
2/** @file
3 * USB device vendor and product ID database - stub.
4 */
5
6/*
7 * Copyright (C) 2015 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#include "USBIdDatabase.h"
19
20Product const AliasDictionary::productArray[] = {0};
21const size_t AliasDictionary::cProducts = 1; /* std::lower_bound cannot deal with empty array */
22Vendor const AliasDictionary::vendorArray[] = {0};
23const size_t AliasDictionary::cVendors = 1; /* std::lower_bound cannot deal with empty array */
24
Note: See TracBrowser for help on using the repository browser.

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