summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-server/HostImpl.cpp
diff options
context:
space:
mode:
authorFelix Geyer <debfx-pkg@fobos.de>2011-06-28 12:27:03 +0200
committerFelix Geyer <debfx-pkg@fobos.de>2011-06-28 12:27:03 +0200
commit6a16f6900dd884e07125b51c9625f6be0a1f9b70 (patch)
treeca3a5bca20c886411320d15508fbd741cba63545 /src/VBox/Main/src-server/HostImpl.cpp
parent0056814bdb2f8a457b56803fd24c72347173250d (diff)
downloadvirtualbox-6a16f6900dd884e07125b51c9625f6be0a1f9b70.tar.gz
Imported Upstream version 4.0.10-dfsgupstream/4.0.10-dfsg
Diffstat (limited to 'src/VBox/Main/src-server/HostImpl.cpp')
-rw-r--r--src/VBox/Main/src-server/HostImpl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/VBox/Main/src-server/HostImpl.cpp b/src/VBox/Main/src-server/HostImpl.cpp
index 6bba2ac66..a2994f520 100644
--- a/src/VBox/Main/src-server/HostImpl.cpp
+++ b/src/VBox/Main/src-server/HostImpl.cpp
@@ -239,6 +239,7 @@ void Host::FinalRelease()
*/
HRESULT Host::init(VirtualBox *aParent)
{
+ HRESULT hrc;
LogFlowThisFunc(("aParent=%p\n", aParent));
/* Enclose the state transition NotReady->InInit->Ready */
@@ -268,7 +269,7 @@ HRESULT Host::init(VirtualBox *aParent)
# else
m->pUSBProxyService = new USBProxyService(this);
# endif
- HRESULT hrc = m->pUSBProxyService->init();
+ hrc = m->pUSBProxyService->init();
AssertComRCReturn(hrc, hrc);
#endif /* VBOX_WITH_USB */
@@ -1679,7 +1680,7 @@ HRESULT Host::getDrives(DeviceType_T mediumType,
Medium *pNew = *itNew;
const Utf8Str strLocationNew = pNew->getLocationFull();
bool fFound = false;
- for (MediaList::iterator itCached = pllCached->begin();
+ for (itCached = pllCached->begin();
itCached != pllCached->end();
++itCached)
{