aboutsummaryrefslogtreecommitdiffstats
path: root/yage/util
diff options
context:
space:
mode:
Diffstat (limited to 'yage/util')
-rw-r--r--yage/util/active.h5
-rw-r--r--yage/util/noncopyable.h5
-rw-r--r--yage/util/syncqueue.h5
3 files changed, 3 insertions, 12 deletions
diff --git a/yage/util/active.h b/yage/util/active.h
index d1d9ba4c..9b5cb4dd 100644
--- a/yage/util/active.h
+++ b/yage/util/active.h
@@ -6,8 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#ifndef YAGE_UTIL_ACTIVE_H
-#define YAGE_UTIL_ACTIVE_H
+#pragma once
#include "syncqueue.h"
@@ -42,5 +41,3 @@ private:
};
} // namespace yage
-
-#endif
diff --git a/yage/util/noncopyable.h b/yage/util/noncopyable.h
index f1325ed1..a2bf5e75 100644
--- a/yage/util/noncopyable.h
+++ b/yage/util/noncopyable.h
@@ -1,5 +1,4 @@
-#ifndef YAGE_UTIL_NONCOPYABLE_H
-#define YAGE_UTIL_NONCOPYABLE_H
+#pragma once
namespace yage
{
@@ -15,5 +14,3 @@ protected:
};
} // namespace yage
-
-#endif
diff --git a/yage/util/syncqueue.h b/yage/util/syncqueue.h
index 7b5e5680..d47d10a0 100644
--- a/yage/util/syncqueue.h
+++ b/yage/util/syncqueue.h
@@ -6,8 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#ifndef YAGE_UTIL_SYNCQUEUE_H
-#define YAGE_UTIL_SYNCQUEUE_H
+#pragma once
#include <condition_variable>
#include <mutex>
@@ -85,5 +84,3 @@ void SyncQueue<T>::push(T &&item)
}
} // namespace yage
-
-#endif