layers: use less of namespace std
authorMike Stroyan <stroyan@google.com>
Fri, 29 Jan 2016 22:33:21 +0000 (15:33 -0700)
committerMike Stroyan <stroyan@google.com>
Fri, 5 Feb 2016 18:05:12 +0000 (11:05 -0700)
Change to std::unordered_map instead of "using namespace std".

layers/threading.cpp
layers/threading.h

index 238cca7..4689e94 100644 (file)
@@ -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"
index 05c6464..a45069f 100644 (file)
@@ -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;