diff options
| author | Mike Stroyan <stroyan@google.com> | 2016-01-29 15:33:21 -0700 |
|---|---|---|
| committer | Mike Stroyan <stroyan@google.com> | 2016-02-05 11:05:12 -0700 |
| commit | d8381303679454ffe52bcc6096baafd60bcf118a (patch) | |
| tree | 71d7a2cd4e24c24a6d76ff35d8d70ee052b4ca6e | |
| parent | dd73dd7234e761346b4314c0e6a73f59ef069d16 (diff) | |
| download | usermoji-d8381303679454ffe52bcc6096baafd60bcf118a.tar.xz | |
layers: use less of namespace std
Change to std::unordered_map instead of "using namespace std".
| -rw-r--r-- | layers/threading.cpp | 1 | ||||
| -rw-r--r-- | layers/threading.h | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/layers/threading.cpp b/layers/threading.cpp index 238cca74..4689e942 100644 --- a/layers/threading.cpp +++ b/layers/threading.cpp @@ -27,7 +27,6 @@ #include <string.h> #include <unordered_map> #include <list> -using namespace std; #include "vulkan/vk_layer.h" #include "vk_layer_config.h" diff --git a/layers/threading.h b/layers/threading.h index 05c64645..a45069fa 100644 --- a/layers/threading.h +++ b/layers/threading.h @@ -56,7 +56,6 @@ struct object_use_data { }; struct layer_data; -using namespace std; static int threadingLockInitialized = 0; static loader_platform_thread_mutex threadingLock; @@ -66,7 +65,7 @@ template <typename T> class counter { public: const char *typeName; VkDebugReportObjectTypeEXT objectType; - unordered_map<T, object_use_data> uses; + std::unordered_map<T, object_use_data> uses; void startWrite(debug_report_data *report_data, T object) { VkBool32 skipCall = VK_FALSE; |
