aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorRoman Stratiienko <r.stratiienko@gmail.com>2022-12-10 20:27:58 +0200
committerRoman Stratiienko <r.stratiienko@gmail.com>2022-12-10 20:37:34 +0200
commitbde95666cfd498fb5f39be79a7485c1b265db9df (patch)
tree2efc0c95fe8fa6f1aaf6cc6dce3185409f44ac43 /backend
parent80566fe554f3d53675adaf32427650fe2c675750 (diff)
downloaddrm_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.h5
-rw-r--r--backend/BackendClient.h5
-rw-r--r--backend/BackendManager.h5
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