diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-11 03:37:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-11 03:37:35 +0300 |
commit | 906b8a241a7884119982789e1ffded8a79c45219 (patch) | |
tree | 23f0e2a83118e0f262e30fd9dfbaed5194c31ad9 /source/blender/blenlib | |
parent | a66b9490a10b114b7d6b7350b06010f98887ca84 (diff) |
Cleanup: add license header, use header guards
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_optional.h | 5 | ||||
-rw-r--r-- | source/blender/blenlib/BLI_utility_mixins.h | 25 |
2 files changed, 28 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_optional.h b/source/blender/blenlib/BLI_optional.h index 8429cddc710..90bded604ea 100644 --- a/source/blender/blenlib/BLI_optional.h +++ b/source/blender/blenlib/BLI_optional.h @@ -20,7 +20,8 @@ * Simple version of std::optional, which is only available since C++17. */ -#pragma once +#ifndef __BLI_OPTIONAL_H__ +#define __BLI_OPTIONAL_H__ #include "BLI_utildefines.h" #include "BLI_memory_utils_cxx.h" @@ -194,3 +195,5 @@ template<typename T> class Optional { }; } /* namespace BLI */ + +#endif /* __BLI_OPTIONAL_H__ */ diff --git a/source/blender/blenlib/BLI_utility_mixins.h b/source/blender/blenlib/BLI_utility_mixins.h index 66164fdcd24..ce7a4ce094a 100644 --- a/source/blender/blenlib/BLI_utility_mixins.h +++ b/source/blender/blenlib/BLI_utility_mixins.h @@ -1,4 +1,25 @@ -#pragma once +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +/** \file + * \ingroup bli + */ + +#ifndef __BLI_UTILITY_MIXINS_H__ +#define __BLI_UTILITY_MIXINS_H__ namespace BLI { @@ -27,3 +48,5 @@ class NonMovable { }; } // namespace BLI + +#endif /* __BLI_UTILITY_MIXINS_H__ */ |