Convert to pragma once

This commit is contained in:
Jack Andersen 2018-10-06 17:39:49 -10:00
parent 4600ff4454
commit afc3e454a0
32 changed files with 32 additions and 94 deletions

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_BUTTON_HPP
#define SPECTER_BUTTON_HPP
#pragma once
#include "specter/TextView.hpp"
#include "specter/Control.hpp"
@ -132,4 +131,3 @@ public:
}
#endif // SPECTER_BUTTON_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_CONTROL_HPP
#define SPECTER_CONTROL_HPP
#pragma once
#include "View.hpp"
@ -119,4 +118,3 @@ public:
}
#endif // SPECTER_CONTROL_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_FILEBROWSER_HPP
#define SPECTER_FILEBROWSER_HPP
#pragma once
#include "View.hpp"
#include "ModalWindow.hpp"
@ -353,4 +352,3 @@ public:
}
#endif // SPECTER_FILEBROWSER_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_FONTCACHE_HPP
#define SPECTER_FONTCACHE_HPP
#pragma once
#include <ft2build.h>
#include FT_FREETYPE_H
@ -201,4 +200,3 @@ public:
}
#endif // SPECTER_FONTCACHE_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_IMENUNODE_HPP
#define SPECTER_IMENUNODE_HPP
#pragma once
#include "View.hpp"
@ -17,4 +16,3 @@ struct IMenuNode
}
#endif // SPECTER_IMENUNODE_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_IVIEWMANAGER_HPP
#define SPECTER_IVIEWMANAGER_HPP
#pragma once
#include "Translator.hpp"
#include "SplitView.hpp"
@ -33,4 +32,3 @@ public:
}
#endif // SPECTER_IVIEWMANAGER_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_ICON_HPP
#define SPECTER_ICON_HPP
#pragma once
#include "View.hpp"
@ -71,4 +70,3 @@ public:
}
#endif // SPECTER_ICON_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_MENU_HPP
#define SPECTER_MENU_HPP
#pragma once
#include "View.hpp"
#include "TextView.hpp"
@ -92,4 +91,3 @@ public:
}
#endif // SPECTER_MENU_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_MESSAGEWINDOW_HPP
#define SPECTER_MESSAGEWINDOW_HPP
#pragma once
#include "ModalWindow.hpp"
#include "MultiLineTextView.hpp"
@ -75,4 +74,3 @@ public:
}
#endif // SPECTER_MESSAGEWINDOW_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_MODAL_WINDOW_HPP
#define SPECTER_MODAL_WINDOW_HPP
#pragma once
#include <specter/View.hpp>
#include <specter/MultiLineTextView.hpp>
@ -83,4 +82,3 @@ public:
}
#endif // SPECTER_MODAL_WINDOW_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_MULTILINETEXTVIEW_HPP
#define SPECTER_MULTILINETEXTVIEW_HPP
#pragma once
#include "View.hpp"
#include "TextView.hpp"
@ -52,4 +51,3 @@ public:
}
#endif // SPECTER_MULTILINETEXTVIEW_HPP

View File

@ -1,4 +1,2 @@
#ifndef SPECTER_NODE_HPP
#define SPECTER_NODE_HPP
#pragma once
#endif // SPECTER_NODE_HPP

View File

@ -1,4 +1,2 @@
#ifndef SPECTER_NODESOCKET_HPP
#define SPECTER_NODESOCKET_HPP
#pragma once
#endif // SPECTER_NODESOCKET_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_NUMERICFIELD_HPP
#define SPECTER_NUMERICFIELD_HPP
#pragma once
#include "specter/TextView.hpp"
@ -51,4 +50,3 @@ public:
}
#endif // SPECTER_NUMERICFIELD_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_OUTLINER_HPP
#define SPECTER_OUTLINER_HPP
#pragma once
namespace specter
{
@ -41,4 +40,3 @@ class Outliner
};
}
#endif // SPECTER_OUTLINER_HPP

View File

@ -1,4 +1,2 @@
#ifndef SPECTER_PANEL_HPP
#define SPECTER_PANEL_HPP
#pragma once
#endif // SPECTER_PANEL_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_PATHBUTTONS_HPP
#define SPECTER_PATHBUTTONS_HPP
#pragma once
#include "Button.hpp"
#include "ScrollView.hpp"
@ -75,4 +74,3 @@ public:
}
#endif // SPECTER_PATHBUTTONS_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_ROOTVIEW_HPP
#define SPECTER_ROOTVIEW_HPP
#pragma once
#include "View.hpp"
#include "ViewResources.hpp"
@ -252,4 +251,3 @@ private:
}
#endif // SPECTER_ROOTVIEW_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_SCROLLVIEW_HPP
#define SPECTER_SCROLLVIEW_HPP
#pragma once
#include "Button.hpp"
#include "IViewManager.hpp"
@ -99,4 +98,3 @@ public:
}
#endif // SPECTER_SCROLLVIEW_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_SPACE_HPP
#define SPECTER_SPACE_HPP
#pragma once
#include "View.hpp"
#include "Toolbar.hpp"
@ -81,4 +80,3 @@ inline Space* View::castToSpace() { return isSpace() ? static_cast<Space*>(this)
}
#endif // SPECTER_SPACE_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_SPLITVIEW_HPP
#define SPECTER_SPLITVIEW_HPP
#pragma once
#include "specter/View.hpp"
@ -119,4 +118,3 @@ inline SplitView* View::castToSplitView() { return isSplitView() ? static_cast<S
}
#endif // SPECTER_SPLITVIEW_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_TABLE_HPP
#define SPECTER_TABLE_HPP
#pragma once
#include "View.hpp"
#include "ScrollView.hpp"
@ -142,4 +141,3 @@ public:
}
#endif // SPECTER_TABLE_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_TEXTFIELD_HPP
#define SPECTER_TEXTFIELD_HPP
#pragma once
#include "Control.hpp"
#include "TextView.hpp"
@ -137,4 +136,3 @@ private:
}
#endif // SPECTER_TEXTFIELD_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_TEXTVIEW_HPP
#define SPECTER_TEXTVIEW_HPP
#pragma once
#include "View.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
@ -131,4 +130,3 @@ private:
}
#endif // SPECTER_TEXTVIEW_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_TOOLBAR_HPP
#define SPECTER_TOOLBAR_HPP
#pragma once
#include "specter/View.hpp"
@ -75,4 +74,3 @@ public:
}
#endif // SPECTER_TOOLBAR_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_TOOLTIP_HPP
#define SPECTER_TOOLTIP_HPP
#pragma once
#include "specter/View.hpp"
#include "specter/MultiLineTextView.hpp"
@ -38,4 +37,3 @@ public:
}
#endif // SPECTER_TOOLTIP_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_TRANSLATOR_HPP
#define SPECTER_TRANSLATOR_HPP
#pragma once
#include <string>
#include <athena/DNAYaml.hpp>
@ -33,4 +32,3 @@ public:
}
#endif // SPECTER_TRANSLATOR_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_VIEW_HPP
#define SPECTER_VIEW_HPP
#pragma once
#include "boo/boo.hpp"
#include "optional.hpp"
@ -394,4 +393,3 @@ struct ScissorViewChild : ViewChild<ViewPtrType>
}
#endif // SPECTER_VIEW_HPP

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_VIEWRESOURCES_HPP
#define SPECTER_VIEWRESOURCES_HPP
#pragma once
#include "TextView.hpp"
#include "SplitView.hpp"
@ -218,4 +217,3 @@ public:
};
} // namespace specter
#endif // SPECTER_VIEWRESOURCES_HPP

View File

@ -1,5 +1,4 @@
#ifndef __SPECTER_GENIE_HPP__
#define __SPECTER_GENIE_HPP__
#pragma once
#if __specter__
#define SPECTER_PROPERTY(n, d) \
@ -12,4 +11,3 @@
#endif
#endif //__SPECTER_GENIE_HPP__

View File

@ -1,5 +1,4 @@
#ifndef SPECTER_HPP
#define SPECTER_HPP
#pragma once
#include "View.hpp"
#include "RootView.hpp"
@ -18,4 +17,3 @@
#include "FontCache.hpp"
#include "ViewResources.hpp"
#endif // SPECTER_HPP

@ -1 +1 @@
Subproject commit 11cd08a30a676f3a18a8ab4d586a6bf9c31f1976
Subproject commit 20603da60d9f3b9adada4f0ccc81e2fc9a27828c