Skip to content

Commit 29e0816

Browse files
committed
GamepadState.h is no longer leaking using std::string
1 parent cd6175b commit 29e0816

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

GamepadState.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// For making axises in the interval [-1,1]
55
#define GAMEPAD_AXIS_FACTOR 1 / 32768.0f
66

7+
using std::string;
78
GamepadState::GamepadState( SDL_GameController* controller )
89
: m_Controller( controller ) { }
910

GamepadState.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
#include <string>
55
#include "InputLibraryDefine.h"
66

7-
using std::string;
8-
97
class GamepadState {
108
public:
119
GamepadState( SDL_GameController* controller );
1210
~GamepadState();
1311

1412
void Update ();
1513

16-
INPUT_API string GetName () const;
14+
INPUT_API std::string GetName () const;
1715

1816
INPUT_API bool ButtonDown ( SDL_GameControllerButton button ) const;
1917
INPUT_API bool ButtonUp ( SDL_GameControllerButton button ) const;

0 commit comments

Comments
 (0)