- Timestamp:
- Feb 7, 2012 9:44:31 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/array.h
r37557 r40023 662 662 it != aCntr.end(); ++ it, ++ i) 663 663 #ifdef VBOX_WITH_XPCOM 664 Copy(*it, m.arr[i]);664 SafeArray::Copy(*it, m.arr[i]); 665 665 #else 666 666 Copy(*it, m.raw[i]); … … 768 768 769 769 #ifdef VBOX_WITH_XPCOM 770 Copy(aElement, m.arr[m.size]);770 SafeArray::Copy(aElement, m.arr[m.size]); 771 771 ++ m.size; 772 772 #else … … 803 803 804 804 #ifdef VBOX_WITH_XPCOM 805 Init(m.arr[m.size]);805 SafeArray::Init(m.arr[m.size]); 806 806 ++ m.size; 807 807 return &m.arr[m.size - 1]; … … 834 834 /* initialize the new elements */ 835 835 for (size_t i = m.size; i < aNewSize; ++ i) 836 Init(m.arr[i]);836 SafeArray::Init(m.arr[i]); 837 837 } 838 838 … … 1102 1102 * shrink the size. */ 1103 1103 for (size_t i = aNewSize; i < m.size; ++ i) 1104 Uninit(m.arr[i]);1104 this->Uninit(m.arr[i]); 1105 1105 1106 1106 m.size = aNewSize; … … 1121 1121 * shrink the size. */ 1122 1122 for (size_t i = aNewSize; i < m.size; ++ i) 1123 Uninit(m.arr[i]);1123 this->Uninit(m.arr[i]); 1124 1124 1125 1125 m.size = aNewSize; … … 1176 1176 { 1177 1177 for (size_t i = 0; i < size; ++ i) 1178 Uninit(arr[i]);1178 SafeArray::Uninit(arr[i]); 1179 1179 1180 1180 nsMemory::Free((void *)arr); … … 1616 1616 it != aCntr.end(); ++ it, ++ i) 1617 1617 #ifdef VBOX_WITH_XPCOM 1618 Copy(*it, Base::m.arr[i]);1618 SafeIfaceArray::Copy(*it, Base::m.arr[i]); 1619 1619 #else 1620 1620 Copy(*it, Base::m.raw[i]); … … 1648 1648 it != aMap.end(); ++ it, ++ i) 1649 1649 #ifdef VBOX_WITH_XPCOM 1650 Copy(it->second, Base::m.arr[i]);1650 SafeIfaceArray::Copy(it->second, Base::m.arr[i]); 1651 1651 #else 1652 1652 Copy(it->second, Base::m.raw[i]); … … 1680 1680 it != aMap.end(); ++ it, ++ i) 1681 1681 #ifdef VBOX_WITH_XPCOM 1682 Copy(it->second, Base::m.arr[i]);1682 SafeIfaceArray::Copy(it->second, Base::m.arr[i]); 1683 1683 #else 1684 1684 Copy(it->second, Base::m.raw[i]); … … 1689 1689 { 1690 1690 #ifdef VBOX_WITH_XPCOM 1691 Copy(obj, Base::m.arr[iIdx]);1691 SafeIfaceArray::Copy(obj, Base::m.arr[iIdx]); 1692 1692 #else 1693 1693 Copy(obj, Base::m.raw[iIdx]); -
trunk/src/VBox/Additions/x11/vboxmouse/undefined
r39811 r40023 8 8 VErrorF 9 9 Xalloc 10 _ITM_registerTMCloneTable 11 _ITM_deregisterTMCloneTable 10 12 _Jv_RegisterClasses 11 13 ___errno -
trunk/src/VBox/Additions/x11/vboxvideo/undefined
r39696 r40023 19 19 XNFstrdup 20 20 Xalloc 21 _ITM_registerTMCloneTable 22 _ITM_deregisterTMCloneTable 21 23 _Jv_RegisterClasses 22 24 ___errno -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r39725 r40023 818 818 char *cdromFile = NULL; 819 819 char *fdaFile = NULL; 820 const char *p ortVRDP = NULL;820 const char *pszPortVRDP = NULL; 821 821 bool fDiscardState = false; 822 822 #ifdef VBOX_SECURELABEL … … 1163 1163 { 1164 1164 // start with the standard VRDP port 1165 p ortVRDP = "0";1165 pszPortVRDP = "0"; 1166 1166 1167 1167 // is there another argument … … 1169 1169 { 1170 1170 curArg++; 1171 p ortVRDP = argv[curArg];1172 LogFlow(("Using non standard VRDP port %s\n", p ortVRDP));1171 pszPortVRDP = argv[curArg]; 1172 LogFlow(("Using non standard VRDP port %s\n", pszPortVRDP)); 1173 1173 } 1174 1174 } … … 1912 1912 } 1913 1913 1914 if (p ortVRDP)1914 if (pszPortVRDP) 1915 1915 { 1916 1916 rc = gpMachine->COMGETTER(VRDEServer)(gpVRDEServer.asOutParam()); … … 1919 1919 { 1920 1920 // has a non standard VRDP port been requested? 1921 if ( portVRDP > 0)1922 { 1923 rc = gpVRDEServer->SetVRDEProperty(Bstr("TCP/Ports").raw(), Bstr(p ortVRDP).raw());1921 if (strcmp(pszPortVRDP, "0")) 1922 { 1923 rc = gpVRDEServer->SetVRDEProperty(Bstr("TCP/Ports").raw(), Bstr(pszPortVRDP).raw()); 1924 1924 if (rc != S_OK) 1925 1925 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h
r37331 r40023 642 642 clear(); 643 643 mIface = that.mIface; 644 addref(ptr());644 this->addref(ptr()); 645 645 } 646 646 … … 649 649 clear(); 650 650 setPtr (aIface); 651 addref (aIface);651 this->addref (aIface); 652 652 } 653 653 … … 702 702 /* be aware of self assignment */ 703 703 I* amIface = ptr(); 704 addref (aIface);705 release (amIface);704 this->addref (aIface); 705 this->release (amIface); 706 706 if (aIface) 707 707 { 708 708 amIface = NULL; 709 709 B::mRC = aIface->QueryInterface (COM_IIDOF (I), (void **) &amIface); 710 release (aIface);710 this->release (aIface); 711 711 setPtr(amIface); 712 712 } … … 725 725 #endif 726 726 /* be aware of self assignment */ 727 addref (aIface);728 release (ptr());727 this->addref (aIface); 728 this->release (ptr()); 729 729 setPtr(aIface); 730 730 B::mRC = S_OK; … … 737 737 Assert(!mDead); 738 738 #endif 739 release (ptr());739 this->release (ptr()); 740 740 setPtr(NULL); 741 741 } -
trunk/src/libs/xpcom18a4/xpcom/ds/nsBaseHashtable.h
r1 r40023 125 125 PRBool Get(KeyType aKey, UserDataType* pData) const 126 126 { 127 EntryType* ent = GetEntry(aKey);127 EntryType* ent = this->GetEntry(aKey); 128 128 129 129 if (!ent) … … 144 144 PRBool Put(KeyType aKey, UserDataType aData) 145 145 { 146 EntryType* ent = PutEntry(aKey);146 EntryType* ent = this->PutEntry(aKey); 147 147 148 148 if (!ent) … … 158 158 * @param aKey the key to remove from the hashtable 159 159 */ 160 void Remove(KeyType aKey) { RemoveEntry(aKey); }160 void Remove(KeyType aKey) { this->RemoveEntry(aKey); } 161 161 162 162 /** -
trunk/src/libs/xpcom18a4/xpcom/ds/nsClassHashtable.h
r1 r40023 99 99 { 100 100 typename nsBaseHashtable<KeyClass,nsAutoPtr<T>,T*>::EntryType* ent = 101 GetEntry(aKey);101 this->GetEntry(aKey); 102 102 103 103 if (ent) … … 127 127 128 128 typename nsBaseHashtableMT<KeyClass,nsAutoPtr<T>,T*>::EntryType* ent = 129 GetEntry(aKey);129 this->GetEntry(aKey); 130 130 131 131 if (ent) -
trunk/src/libs/xpcom18a4/xpcom/ds/nsInterfaceHashtable.h
r1 r40023 112 112 { 113 113 typename nsBaseHashtable<KeyClass, nsCOMPtr<Interface>, Interface*>::EntryType* ent = 114 GetEntry(aKey);114 this->GetEntry(aKey); 115 115 116 116 if (ent) … … 140 140 { 141 141 typename nsBaseHashtable<KeyClass, nsCOMPtr<Interface>, Interface*>::EntryType* ent = 142 GetEntry(aKey);142 this->GetEntry(aKey); 143 143 144 144 if (ent) … … 168 168 169 169 typename nsBaseHashtableMT<KeyClass, nsCOMPtr<Interface>, Interface*>::EntryType* ent = 170 GetEntry(aKey);170 this->GetEntry(aKey); 171 171 172 172 if (ent) -
trunk/src/libs/xpcom18a4/xpcom/ds/nsRefPtrHashtable.h
r1 r40023 113 113 { 114 114 typename nsBaseHashtable<KeyClass, nsRefPtr<RefPtr>, RefPtr*>::EntryType* ent = 115 GetEntry(aKey);115 this->GetEntry(aKey); 116 116 117 117 if (ent) … … 141 141 { 142 142 typename nsBaseHashtable<KeyClass, nsRefPtr<RefPtr>, RefPtr*>::EntryType* ent = 143 GetEntry(aKey);143 this->GetEntry(aKey); 144 144 145 145 if (ent) … … 169 169 170 170 typename nsBaseHashtableMT<KeyClass, nsRefPtr<RefPtr>, RefPtr*>::EntryType* ent = 171 GetEntry(aKey);171 this->GetEntry(aKey); 172 172 173 173 if (ent)
Note:
See TracChangeset
for help on using the changeset viewer.