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:
Tyler Veness
2016-05-25 22:40:15 -07:00
committed by Peter Johnson
parent d82635bbe1
commit 62812faf62
57 changed files with 56 additions and 194 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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