Changeset 19256 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 29, 2009 11:08:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaComboBox.cpp
r19239 r19256 102 102 QString VBoxMediaComboBox::id (int aIndex /*= -1*/) const 103 103 { 104 QString uuidNull; /* gcc-3.3 hack */105 AssertReturn (aIndex == -1 ||106 (aIndex >= 0 && aIndex < mMedia.size()),107 uuidNull);108 109 return mMedia [aIndex == -1 ? currentIndex() : aIndex].id;110 }111 112 QString VBoxMediaComboBox::location (int aIndex /*= -1*/) const113 {114 104 AssertReturn (aIndex == -1 || 115 105 (aIndex >= 0 && aIndex < mMedia.size()), 116 106 QString::null); 117 107 118 return mMedia [aIndex == -1 ? currentIndex() : aIndex].location; 108 if (aIndex == -1) aIndex = currentIndex(); 109 return aIndex == -1 ? QString::null : mMedia [aIndex].id; 110 } 111 112 QString VBoxMediaComboBox::location (int aIndex /*= -1*/) const 113 { 114 AssertReturn (aIndex == -1 || 115 (aIndex >= 0 && aIndex < mMedia.size()), 116 QString::null); 117 118 if (aIndex == -1) aIndex = currentIndex(); 119 return aIndex == -1 ? QString::null : mMedia [aIndex].location; 119 120 } 120 121
Note:
See TracChangeset
for help on using the changeset viewer.