]> git.mxchange.org Git - flightgear.git/blobdiff - src/Input/FGMacOSXEventInput.cxx
Clean-up: move autosave.xml loading code to proper method
[flightgear.git] / src / Input / FGMacOSXEventInput.cxx
index 6c6d27fb550d1571d965d6efb420d3362b2fcffe..28c3094cccfa84c0653d891f8d43c181eea19531 100644 (file)
@@ -22,6 +22,9 @@
 
 #include "FGMacOSXEventInput.hxx"
 
+using std::stringstream;
+using std::map;
+using std::string;
 
 #define GetHIDElementLongValue(element, key) ({ \
       long value = 0; \
@@ -612,7 +615,7 @@ void FGMacOSXInputDevice::Open() {
        
   if (ret != kIOReturnSuccess) {
     SG_LOG(SG_INPUT, SG_ALERT, "Error creating a plugin for HID : " << GetName());
-    throw exception();
+    throw std::exception();
     return;
   }
 
@@ -626,14 +629,14 @@ void FGMacOSXInputDevice::Open() {
   (*plugin)->Release(plugin); // don't leak a ref
   if (devInterface == NULL) {
     return;
-    throw exception();
+    throw std::exception();
   }
        
   // store the interface in this instance
   ret = (*devInterface)->open(devInterface, 0);
   if (ret != kIOReturnSuccess) {
     SG_LOG(SG_INPUT, SG_ALERT, "Error opening device interface: " << GetName());
-    throw exception();
+    throw std::exception();
     return;
   }
   CFDictionaryRef props = getProperties();