Changeset 52880 in vbox for trunk/src/VBox
- Timestamp:
- Sep 29, 2014 7:51:29 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r52831 r52880 25 25 #include "Logging.h" 26 26 27 #include <VBox/com/array.h>28 27 #include "VBox/com/MultiResult.h" 29 28 #include "VBox/com/ErrorInfo.h" … … 2362 2361 if (aVariant.size()) 2363 2362 { 2364 com::SafeArray<MediumVariant_T> variants(aVariant); 2365 for (size_t i = 0; i < variants.size(); i++) 2366 mediumVariantFlags |= variants[i]; 2363 for (size_t i = 0; i < aVariant.size(); i++) 2364 mediumVariantFlags |= (ULONG)aVariant[i]; 2367 2365 } 2368 2366 … … 2502 2500 if (aVariant.size()) 2503 2501 { 2504 com::SafeArray<MediumVariant_T> variants(aVariant); 2505 for (size_t i = 0; i < variants.size(); i++) 2506 mediumVariantFlags |= variants[i]; 2502 for (size_t i = 0; i < aVariant.size(); i++) 2503 mediumVariantFlags |= (ULONG)aVariant[i]; 2507 2504 } 2508 2505 … … 2667 2664 if (aVariant.size()) 2668 2665 { 2669 com::SafeArray<MediumVariant_T> variants(aVariant); 2670 for (size_t i = 0; i < variants.size(); i++) 2671 mediumVariantFlags |= variants[i]; 2666 for (size_t i = 0; i < aVariant.size(); i++) 2667 mediumVariantFlags |= (ULONG)aVariant[i]; 2672 2668 } 2673 2669
Note:
See TracChangeset
for help on using the changeset viewer.