Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2009, 12:08:59 PM (15 years ago)
Author:
rgrieder
Message:

Minor problem with exception catching.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/input/InputManager.cc

    r3327 r3331  
    208208            guard.Dismiss();
    209209        }
    210         catch (std::exception& ex)
     210        catch (const std::exception& ex)
    211211        {
    212212            oisInputManager_ = NULL;
     
    234234                devices_[InputDeviceEnumerator::Mouse] = new Mouse(InputDeviceEnumerator::Mouse, oisInputManager_);
    235235            }
    236             catch (const OIS::Exception& ex)
    237             {
    238                 CCOUT(2) << "Warning: Failed to create Mouse:" << ex.eText << std::endl
     236            catch (const std::exception& ex)
     237            {
     238                CCOUT(2) << "Warning: Failed to create Mouse:" << ex.what() << std::endl
    239239                         << "Proceeding without mouse support." << std::endl;
    240240            }
     
    253253                devices_.push_back(new JoyStick(InputDeviceEnumerator::FirstJoyStick + i, oisInputManager_));
    254254            }
    255             catch (std::exception ex)
     255            catch (const std::exception& ex)
    256256            {
    257257                CCOUT(2) << "Warning: Failed to create joy stick: " << ex.what() << std::endl;
Note: See TracChangeset for help on using the changeset viewer.