Skip to content

Commit

Permalink
Replace header guards by #pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
dictoon committed Nov 28, 2015
1 parent 6d67a4e commit 2e5a0d1
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 44 deletions.
5 changes: 1 addition & 4 deletions src/appleseed-renderer/appleseedrenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// THE SOFTWARE.
//

#ifndef APPLESEEDRENDERER_H
#define APPLESEEDRENDERER_H
#pragma once

// appleseed-max headers.
#include "maxsceneentities.h"
Expand Down Expand Up @@ -127,5 +126,3 @@ class AppleseedRendererClassDesc
virtual const MCHAR* Category() override;
virtual const MCHAR* InternalName() override;
};

#endif // !APPLESEEDRENDERER_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/appleseedrendererparamdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// THE SOFTWARE.
//

#ifndef APPLESEEDRENDERERPARAMDLG_H
#define APPLESEEDRENDERERPARAMDLG_H
#pragma once

// Windows headers.
#ifndef NOMINMAX
Expand Down Expand Up @@ -60,5 +59,3 @@ class AppleseedRendererParamDlg
struct Impl;
Impl* impl;
};

#endif // !APPLESEEDRENDERERPARAMDLG_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/datachunks.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// THE SOFTWARE.
//

#ifndef DATACHUNKS_H
#define DATACHUNKS_H
#pragma once

// appleseed.foundation headers.
#include "foundation/platform/windows.h"
Expand All @@ -50,5 +49,3 @@ const USHORT CHUNK_SETTINGS_OUTPUT_PROJECT_FILE_PATH = 0x1320;

const USHORT CHUNK_SETTINGS_SYSTEM = 0x1400;
const USHORT CHUNK_SETTINGS_SYSTEM_RENDERING_THREADS = 0x1410;

#endif // !DATACHUNKS_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
// THE SOFTWARE.
//

#ifndef MAIN_H
#define MAIN_H
#pragma once

// DLL instance handle of the plugin.
extern HINSTANCE g_module;

#endif // !MAIN_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/maxsceneentities.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// THE SOFTWARE.
//

#ifndef MAXSCENEENTITIES_H
#define MAXSCENEENTITIES_H
#pragma once

// Standard headers.
#include <vector>
Expand Down Expand Up @@ -56,5 +55,3 @@ class MaxSceneEntityCollector

void visit(INode* node);
};

#endif // !MAXSCENEENTITIES_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/projectbuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// THE SOFTWARE.
//

#ifndef PROJECTBUILDER_H
#define PROJECTBUILDER_H
#pragma once

// appleseed.foundation headers.
#include "foundation/platform/windows.h" // include before 3ds Max headers
Expand All @@ -53,5 +52,3 @@ foundation::auto_release_ptr<renderer::Project> build_project(
const ViewParams& view_params,
Bitmap* bitmap,
const TimeValue time);

#endif // !PROJECTBUILDER_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/renderercontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// THE SOFTWARE.
//

#ifndef RENDERERCONTROLLER_H
#define RENDERERCONTROLLER_H
#pragma once

// appleseed.renderer headers.
#include "renderer/api/rendering.h"
Expand Down Expand Up @@ -62,5 +61,3 @@ class RendererController
const size_t m_total_tile_count;
Status m_status;
};

#endif // !RENDERERCONTROLLER_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/renderersettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// THE SOFTWARE.
//

#ifndef RENDERERSETTINGS_H
#define RENDERERSETTINGS_H
#pragma once

// appleseed.foundation headers.
#include "foundation/platform/windows.h" // include before 3ds Max headers
Expand Down Expand Up @@ -100,5 +99,3 @@ class RendererSettings
IOResult load_output_settings(ILoad* iload);
IOResult load_system_settings(ILoad* iload);
};

#endif // !RENDERERSETTINGS_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/tilecallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// THE SOFTWARE.
//

#ifndef TILECALLBACK_H
#define TILECALLBACK_H
#pragma once

// appleseed.renderer headers.
#include "renderer/api/rendering.h"
Expand Down Expand Up @@ -78,5 +77,3 @@ class TileCallback
const size_t tile_x,
const size_t tile_y);
};

#endif // !TILECALLBACK_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// THE SOFTWARE.
//

#ifndef UTILITIES_H
#define UTILITIES_H
#pragma once

// appleseed.foundation headers.
#include "foundation/image/color.h"
Expand Down Expand Up @@ -185,5 +184,3 @@ inline IOResult read(ILoad* iload, MSTR* s)
// todo: free memory allocated by ReadWStringChunk()?
return result;
}

#endif // !UTILITIES_H
5 changes: 1 addition & 4 deletions src/appleseed-renderer/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@
// THE SOFTWARE.
//

#ifndef VERSION_H
#define VERSION_H
#pragma once

// appleseed.foundation headers.
#include "foundation/platform/windows.h"

const USHORT PLUGIN_VERSION = 0x0001;

#endif // !VERSION_H

0 comments on commit 2e5a0d1

Please sign in to comment.