diff options
author | Roman Stratiienko <r.stratiienko@gmail.com> | 2022-12-10 20:27:58 +0200 |
---|---|---|
committer | Roman Stratiienko <r.stratiienko@gmail.com> | 2022-12-10 20:37:34 +0200 |
commit | bde95666cfd498fb5f39be79a7485c1b265db9df (patch) | |
tree | 2efc0c95fe8fa6f1aaf6cc6dce3185409f44ac43 /backend | |
parent | 80566fe554f3d53675adaf32427650fe2c675750 (diff) | |
download | drm_hwcomposer-bde95666cfd498fb5f39be79a7485c1b265db9df.tar.gz |
drm_hwcomposer: Use pragma once instead of include guards
Some of existing include guards were copy-pasted without modification,
therefore have incorrect name. Switch to 'pragma once' in order to fix
it and avoid such copy-paste issues in the future.
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Diffstat (limited to 'backend')
-rw-r--r-- | backend/Backend.h | 5 | ||||
-rw-r--r-- | backend/BackendClient.h | 5 | ||||
-rw-r--r-- | backend/BackendManager.h | 5 |
3 files changed, 3 insertions, 12 deletions
diff --git a/backend/Backend.h b/backend/Backend.h index 82b8fca..c24e818 100644 --- a/backend/Backend.h +++ b/backend/Backend.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef ANDROID_BACKEND_H -#define ANDROID_BACKEND_H +#pragma once #include "hwc2_device/DrmHwcTwo.h" @@ -41,5 +40,3 @@ class Backend { int client_start, size_t client_size); }; } // namespace android - -#endif diff --git a/backend/BackendClient.h b/backend/BackendClient.h index 95abb0f..1333eca 100644 --- a/backend/BackendClient.h +++ b/backend/BackendClient.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef ANDROID_BACKEND_CLIENT_H -#define ANDROID_BACKEND_CLIENT_H +#pragma once #include "Backend.h" @@ -27,5 +26,3 @@ class BackendClient : public Backend { uint32_t *num_requests) override; }; } // namespace android - -#endif diff --git a/backend/BackendManager.h b/backend/BackendManager.h index 751cb78..4976744 100644 --- a/backend/BackendManager.h +++ b/backend/BackendManager.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef ANDROID_BACKEND_MANAGER_H -#define ANDROID_BACKEND_MANAGER_H +#pragma once #include <functional> #include <map> @@ -54,5 +53,3 @@ class BackendManager { std::map<std::string, BackendConstructorT> available_backends_; }; } // namespace android - -#endif |