mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +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
@@ -1,12 +1,11 @@
|
||||
/*
|
||||
* NamedSendable.h
|
||||
*
|
||||
* Created on: Oct 19, 2012
|
||||
* Author: Mitchell Wills
|
||||
*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) FIRST 2012-2016. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef NAMEDSENDABLE_H_
|
||||
#define NAMEDSENDABLE_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "SmartDashboard/Sendable.h"
|
||||
@@ -24,5 +23,3 @@ class NamedSendable : public Sendable {
|
||||
*/
|
||||
virtual std::string GetName() const = 0;
|
||||
};
|
||||
|
||||
#endif /* NAMEDSENDABLE_H_ */
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __SMART_DASHBOARD_DATA__
|
||||
#define __SMART_DASHBOARD_DATA__
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
@@ -31,5 +30,3 @@ class Sendable {
|
||||
*/
|
||||
virtual std::string GetSmartDashboardType() const = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __SENDABLE_CHOOSER_H__
|
||||
#define __SENDABLE_CHOOSER_H__
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
@@ -44,5 +43,3 @@ class SendableChooser : public Sendable {
|
||||
std::map<std::string, void*> m_choices;
|
||||
std::shared_ptr<ITable> m_table;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef __SMART_DASHBOARD_H__
|
||||
#define __SMART_DASHBOARD_H__
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
@@ -49,5 +48,3 @@ class SmartDashboard : public SensorBase {
|
||||
*/
|
||||
static std::map<std::shared_ptr<ITable>, Sendable*> m_tablesToData;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user