summaryrefslogtreecommitdiff
path: root/libunwindstack/include/unwindstack/SharedString.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2022-04-20 17:15:38 -0700
committerChristopher Ferris <cferris@google.com>2022-04-20 17:21:11 -0700
commit0cd3943fb8857eba64f8590fd6137648f3fcb198 (patch)
treed7791735cd60241ffb1584d4e6843cd6c86a34a0 /libunwindstack/include/unwindstack/SharedString.h
parent215644709bd7bbda4c05a9db4d55e96be61bcf64 (diff)
downloadunwinding-0cd3943fb8857eba64f8590fd6137648f3fcb198.tar.gz
Use #pragma once header guard.
Move to using the #pragma once header guard instead of the #ifndef construct since it's cleaner. Test: Compiles. Change-Id: I0bd76b53cfc78df7465029ef34783f85651a9c74
Diffstat (limited to 'libunwindstack/include/unwindstack/SharedString.h')
-rw-r--r--libunwindstack/include/unwindstack/SharedString.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libunwindstack/include/unwindstack/SharedString.h b/libunwindstack/include/unwindstack/SharedString.h
index a82c4fe..1eb4e21 100644
--- a/libunwindstack/include/unwindstack/SharedString.h
+++ b/libunwindstack/include/unwindstack/SharedString.h
@@ -14,8 +14,7 @@
* limitations under the License.
*/
-#ifndef _LIBUNWINDSTACK_SHAREDSTRING_H
-#define _LIBUNWINDSTACK_SHAREDSTRING_H
+#pragma once
#include <memory>
#include <string>
@@ -73,4 +72,3 @@ static inline std::string operator+(const char* a, const SharedString& b) {
}
} // namespace unwindstack
-#endif // _LIBUNWINDSTACK_SHAREDSTRING_H