[Bf-blender-cvs] [906b8a241a7] master: Cleanup: add license header, use header guards

Campbell Barton noreply at git.blender.org
Tue Feb 11 03:21:48 CET 2020


Commit: 906b8a241a7884119982789e1ffded8a79c45219
Author: Campbell Barton
Date:   Tue Feb 11 11:37:35 2020 +1100
Branches: master
https://developer.blender.org/rB906b8a241a7884119982789e1ffded8a79c45219

Cleanup: add license header, use header guards

===================================================================

M	source/blender/blenlib/BLI_optional.h
M	source/blender/blenlib/BLI_utility_mixins.h

===================================================================

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__ */



More information about the Bf-blender-cvs mailing list