From b575cecc062ea5ff65df8002017f81fb05854622 Mon Sep 17 00:00:00 2001 From: Dave Houlton Date: Wed, 7 Feb 2018 10:51:23 -0700 Subject: layers: clang-format only Whole-file clang-format of layers .h and .cpp files Change-Id: I683ad38fa9bced371a923b86d8cc916f2c2aa947 --- layers/unique_objects.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'layers/unique_objects.h') diff --git a/layers/unique_objects.h b/layers/unique_objects.h index e604e915..d8d33935 100644 --- a/layers/unique_objects.h +++ b/layers/unique_objects.h @@ -109,10 +109,9 @@ bool ContainsExtStruct(const T *target, VkStructureType ext_type) { return false; } - /* Unwrap a handle. */ // must hold lock! -template +template HandleType Unwrap(MapType *layer_data, HandleType wrappedHandle) { // TODO: don't use operator[] here. return (HandleType)layer_data->unique_id_mapping[reinterpret_cast(wrappedHandle)]; @@ -120,7 +119,7 @@ HandleType Unwrap(MapType *layer_data, HandleType wrappedHandle) { /* Wrap a newly created handle with a new unique ID, and return the new ID. */ // must hold lock! -template +template HandleType WrapNew(MapType *layer_data, HandleType newlyCreatedHandle) { auto unique_id = global_unique_id++; layer_data->unique_id_mapping[unique_id] = reinterpret_cast(newlyCreatedHandle); -- cgit v1.2.3