mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Clean up include guards and EOF newlines (#65)
* Replaced include guards with #pragma once * All source files now have exactly one newline appended Some files had either two newlines at the end or none (which isn't POSIX compliant). This patch fixes that.
This commit is contained in:
committed by
Peter Johnson
parent
d82635bbe1
commit
62812faf62
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __BUTTON_H__
|
||||
#define __BUTTON_H__
|
||||
#pragma once
|
||||
|
||||
#include "Buttons/Trigger.h"
|
||||
#include "Commands/Command.h"
|
||||
@@ -33,5 +32,3 @@ class Button : public Trigger {
|
||||
virtual void CancelWhenPressed(Command* command);
|
||||
virtual void ToggleWhenPressed(Command* command);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __BUTTON_SCHEDULER_H__
|
||||
#define __BUTTON_SCHEDULER_H__
|
||||
#pragma once
|
||||
|
||||
class Trigger;
|
||||
class Command;
|
||||
@@ -23,5 +22,3 @@ class ButtonScheduler {
|
||||
Trigger* m_button;
|
||||
Command* m_command;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __CANCEL_BUTTON_SCHEDULER_H__
|
||||
#define __CANCEL_BUTTON_SCHEDULER_H__
|
||||
#pragma once
|
||||
|
||||
#include "Buttons/ButtonScheduler.h"
|
||||
|
||||
@@ -22,5 +21,3 @@ class CancelButtonScheduler : public ButtonScheduler {
|
||||
private:
|
||||
bool pressedLast;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __HELD_BUTTON_SCHEDULER_H__
|
||||
#define __HELD_BUTTON_SCHEDULER_H__
|
||||
#pragma once
|
||||
|
||||
#include "Buttons/ButtonScheduler.h"
|
||||
|
||||
@@ -19,5 +18,3 @@ class HeldButtonScheduler : public ButtonScheduler {
|
||||
virtual ~HeldButtonScheduler() = default;
|
||||
virtual void Execute();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __INTERNAL_BUTTON_H__
|
||||
#define __INTERNAL_BUTTON_H__
|
||||
#pragma once
|
||||
|
||||
#include "Buttons/Button.h"
|
||||
|
||||
@@ -25,5 +24,3 @@ class InternalButton : public Button {
|
||||
bool m_pressed = false;
|
||||
bool m_inverted = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __JOYSTICK_BUTTON_H__
|
||||
#define __JOYSTICK_BUTTON_H__
|
||||
#pragma once
|
||||
|
||||
#include "Buttons/Button.h"
|
||||
#include "GenericHID.h"
|
||||
@@ -22,5 +21,3 @@ class JoystickButton : public Button {
|
||||
GenericHID* m_joystick;
|
||||
int m_buttonNumber;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __NETWORK_BUTTON_H__
|
||||
#define __NETWORK_BUTTON_H__
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
@@ -24,5 +23,3 @@ class NetworkButton : public Button {
|
||||
std::shared_ptr<ITable> m_netTable;
|
||||
std::string m_field;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __PRESSED_BUTTON_SCHEDULER_H__
|
||||
#define __PRESSED_BUTTON_SCHEDULER_H__
|
||||
#pragma once
|
||||
|
||||
#include "Buttons/ButtonScheduler.h"
|
||||
|
||||
@@ -19,5 +18,3 @@ class PressedButtonScheduler : public ButtonScheduler {
|
||||
virtual ~PressedButtonScheduler() = default;
|
||||
virtual void Execute();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __RELEASED_BUTTON_SCHEDULER_H__
|
||||
#define __RELEASED_BUTTON_SCHEDULER_H__
|
||||
#pragma once
|
||||
|
||||
#include "Buttons/ButtonScheduler.h"
|
||||
|
||||
@@ -19,5 +18,3 @@ class ReleasedButtonScheduler : public ButtonScheduler {
|
||||
virtual ~ReleasedButtonScheduler() = default;
|
||||
virtual void Execute();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __TOGGLE_BUTTON_SCHEDULER_H__
|
||||
#define __TOGGLE_BUTTON_SCHEDULER_H__
|
||||
#pragma once
|
||||
|
||||
#include "Buttons/ButtonScheduler.h"
|
||||
|
||||
@@ -22,5 +21,3 @@ class ToggleButtonScheduler : public ButtonScheduler {
|
||||
private:
|
||||
bool pressedLast;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __TRIGGER_H__
|
||||
#define __TRIGGER_H__
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include "SmartDashboard/Sendable.h"
|
||||
@@ -49,5 +48,3 @@ class Trigger : public Sendable {
|
||||
protected:
|
||||
std::shared_ptr<ITable> m_table;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user