summaryrefslogtreecommitdiff
path: root/include/input/KeyLayoutMap.h
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-09-10 00:57:15 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2022-09-10 00:57:54 +0000
commitc08b0dbd8b4b3090734144208b192c2d374f14b0 (patch)
treeca15d1240cdd20585676edc3d21ebde5f6e48043 /include/input/KeyLayoutMap.h
parent5404600a170f7d095ee51a7469aaab900e9491b7 (diff)
libinput: Use #pragma once instead of explicit define guards
The #pragma once directive is commonly used by modern cpp code, and support for its use in Andorid is proposed in go/droidcppstyle. Bug: 245989146 Test: Build, Presubmit Change-Id: Ib7852f1a343864dff46e7bc616d707bc7d5bf512
Diffstat (limited to 'include/input/KeyLayoutMap.h')
-rw-r--r--include/input/KeyLayoutMap.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/input/KeyLayoutMap.h b/include/input/KeyLayoutMap.h
index a6c696df26..e203d190a6 100644
--- a/include/input/KeyLayoutMap.h
+++ b/include/input/KeyLayoutMap.h
@@ -14,8 +14,7 @@
* limitations under the License.
*/
-#ifndef _LIBINPUT_KEY_LAYOUT_MAP_H
-#define _LIBINPUT_KEY_LAYOUT_MAP_H
+#pragma once
#include <android-base/result.h>
#include <stdint.h>
@@ -131,5 +130,3 @@ private:
};
} // namespace android
-
-#endif // _LIBINPUT_KEY_LAYOUT_MAP_H