Changeset 105864 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- Aug 26, 2024 6:45:15 PM (9 months ago)
- svn:sync-xref-src-repo-rev:
- 164584
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp
r104865 r105864 28 28 #define LOG_GROUP LOG_GROUP_MAIN_PLATFORMPROPERTIES 29 29 #include "PlatformPropertiesImpl.h" 30 #include "GraphicsAdapterImpl.h" /* For static helper functions. */ 30 31 #include "VirtualBoxImpl.h" 31 32 #include "LoggingNew.h" … … 40 41 // generated header 41 42 #include "SchemaDefs.h" 43 44 45 // defines 46 ///////////////////////////////////////////////////////////////////////////// 47 48 /** @def MY_VECTOR_ASSIGN_ARRAY 49 * Safe way to copy an array (static + const) into a vector w/ minimal typing. 50 * 51 * @param a_rVector The destination vector reference. 52 * @param a_aSrcArray The source array to assign to the vector. 53 */ 54 #if RT_GNUC_PREREQ(13, 0) && !RT_GNUC_PREREQ(14, 0) && defined(VBOX_WITH_GCC_SANITIZER) 55 /* Workaround for g++ 13.2 incorrectly failing on arrays with a single entry in ASAN builds. 56 This is restricted to [13.0, 14.0), assuming the issue was introduced in the 13 cycle 57 and will be fixed by the time 14 is done. If 14 doesn't fix it, extend the range 58 version by version till it is fixed. */ 59 # define MY_VECTOR_ASSIGN_ARRAY(a_rVector, a_aSrcArray) do { \ 60 _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wstringop-overread\""); \ 61 (a_rVector).assign(&a_aSrcArray[0], &a_aSrcArray[RT_ELEMENTS(a_aSrcArray)]); \ 62 _Pragma("GCC diagnostic pop"); \ 63 } while (0) 64 #else 65 # define MY_VECTOR_ASSIGN_ARRAY(a_rVector, a_aSrcArray) do { \ 66 (a_rVector).assign(&a_aSrcArray[0], &a_aSrcArray[RT_ELEMENTS(a_aSrcArray)]); \ 67 } while (0) 68 #endif 42 69 43 70 … … 676 703 } 677 704 678 HRESULT PlatformProperties::getSupportedG raphicsControllerTypes(std::vector<GraphicsControllerType_T> &aSupportedGraphicsControllerTypes)705 HRESULT PlatformProperties::getSupportedGfxControllerTypes(std::vector<GraphicsControllerType_T> &aSupportedGraphicsControllerTypes) 679 706 { 680 707 switch (mPlatformArchitecture) … … 918 945 } 919 946 947 HRESULT PlatformProperties::getSupportedGfxFeaturesForType(GraphicsControllerType_T aGraphicsControllerType, 948 std::vector<GraphicsFeature_T> &aSupportedGraphicsFeatures) 949 { 950 int vrc = GraphicsAdapter::s_getSupportedFeatures(aGraphicsControllerType, aSupportedGraphicsFeatures); 951 if (RT_FAILURE(vrc)) 952 return setError(E_INVALIDARG, tr("The graphics controller type (%d) is invalid"), aGraphicsControllerType); 953 954 return S_OK; 955 } 956 920 957 HRESULT PlatformProperties::getSupportedAudioControllerTypes(std::vector<AudioControllerType_T> &aSupportedAudioControllerTypes) 921 958 {
Note:
See TracChangeset
for help on using the changeset viewer.