diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-04-17 16:12:51 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-04-17 16:12:51 +0100 |
commit | b41eac5a4d0f87624296ed36b492f918747ec4a6 (patch) | |
tree | 5cbc91ad0ebaea7a2144c176c812c72b8a2fa498 /netfs/fuse | |
parent | Rename underscore named variables (diff) | |
download | netfs-b41eac5a4d0f87624296ed36b492f918747ec4a6.tar.bz2 netfs-b41eac5a4d0f87624296ed36b492f918747ec4a6.tar.xz netfs-b41eac5a4d0f87624296ed36b492f918747ec4a6.zip |
Prefer pragma once
Diffstat (limited to 'netfs/fuse')
-rw-r--r-- | netfs/fuse/fuseApp.h | 5 | ||||
-rw-r--r-- | netfs/fuse/fuseApp.impl.h | 5 | ||||
-rw-r--r-- | netfs/fuse/fuseAppBase.h | 5 | ||||
-rw-r--r-- | netfs/fuse/fuseDirs.h | 5 | ||||
-rw-r--r-- | netfs/fuse/fuseFiles.h | 5 | ||||
-rw-r--r-- | netfs/fuse/fuseMappersImpl.h | 5 |
6 files changed, 6 insertions, 24 deletions
diff --git a/netfs/fuse/fuseApp.h b/netfs/fuse/fuseApp.h index dcb00c7..78cdf06 100644 --- a/netfs/fuse/fuseApp.h +++ b/netfs/fuse/fuseApp.h @@ -1,5 +1,4 @@ -#ifndef NETFS_FUSE_H -#define NETFS_FUSE_H +#pragma once #include "cache.h" #include "fuseAppBase.h" @@ -117,5 +116,3 @@ namespace NetFS { StatCache statCache; }; } - -#endif diff --git a/netfs/fuse/fuseApp.impl.h b/netfs/fuse/fuseApp.impl.h index af05b0b..f509ad9 100644 --- a/netfs/fuse/fuseApp.impl.h +++ b/netfs/fuse/fuseApp.impl.h @@ -1,5 +1,4 @@ -#ifndef NETFS_FUSE_COMMON_H -#define NETFS_FUSE_COMMON_H +#pragma once #include "fuseApp.h" #include <lockHelpers.h> @@ -38,5 +37,3 @@ namespace NetFS { map.erase(localID); } } - -#endif diff --git a/netfs/fuse/fuseAppBase.h b/netfs/fuse/fuseAppBase.h index ef7b27f..035af21 100644 --- a/netfs/fuse/fuseAppBase.h +++ b/netfs/fuse/fuseAppBase.h @@ -1,5 +1,4 @@ -#ifndef FUSEAPP_H -#define FUSEAPP_H +#pragma once #include <c++11Helpers.h> #include <cerrno> @@ -189,5 +188,3 @@ protected: return (fuseApp->*f)(a...); } }; - -#endif diff --git a/netfs/fuse/fuseDirs.h b/netfs/fuse/fuseDirs.h index bb02e65..87a5b06 100644 --- a/netfs/fuse/fuseDirs.h +++ b/netfs/fuse/fuseDirs.h @@ -1,5 +1,4 @@ -#ifndef NETFS_FUSE_DIRS_H -#define NETFS_FUSE_DIRS_H +#pragma once #include "fuseApp.impl.h" @@ -12,5 +11,3 @@ namespace NetFS { const std::string path; }; } - -#endif diff --git a/netfs/fuse/fuseFiles.h b/netfs/fuse/fuseFiles.h index ca6cf53..46dff07 100644 --- a/netfs/fuse/fuseFiles.h +++ b/netfs/fuse/fuseFiles.h @@ -1,5 +1,4 @@ -#ifndef NETFS_FUSE_FILES_H -#define NETFS_FUSE_FILES_H +#pragma once #include "fuseApp.h" #include <boost/icl/interval_map.hpp> @@ -28,5 +27,3 @@ namespace NetFS { mutable std::shared_mutex mutex; }; } - -#endif diff --git a/netfs/fuse/fuseMappersImpl.h b/netfs/fuse/fuseMappersImpl.h index a87f7ba..e37874a 100644 --- a/netfs/fuse/fuseMappersImpl.h +++ b/netfs/fuse/fuseMappersImpl.h @@ -1,5 +1,4 @@ -#ifndef NETFS_MAPPING_CLIENTIMPL_H -#define NETFS_MAPPING_CLIENTIMPL_H +#pragma once #include "baseMapper.h" #include "entries.h" @@ -27,5 +26,3 @@ namespace NetFS::Client { Mapping::FileSystem mapTransport(const std::string & un, const std::string & gn) override; }; } - -#endif |