Replaced const variables with constexpr (#731)

This commit is contained in:
Tyler Veness
2017-11-19 19:04:28 -08:00
committed by Peter Johnson
parent 259461aee9
commit 5af0c9c101
16 changed files with 26 additions and 59 deletions

View File

@@ -40,7 +40,7 @@ class DriverStation : public SensorBase, public RobotStateInterface {
static void ReportError(bool is_error, int code, llvm::StringRef error,
llvm::StringRef location, llvm::StringRef stack);
static const int kJoystickPorts = 6;
static constexpr int kJoystickPorts = 6;
bool GetStickButton(int stick, int button);
bool GetStickButtonPressed(int stick, int button);