Removed tabs and unneeded constructor
[invirt/third/libt4.git] / handle.cc
index d048ead..d32c895 100644 (file)
--- a/handle.cc
+++ b/handle.cc
@@ -1,9 +1,4 @@
 #include "handle.h"
-#include "threaded_log.h"
-#include "lock.h"
-#include <map>
-
-using std::map;
 
 class hinfo {
 public:
@@ -67,10 +62,11 @@ hinfo * handle_mgr::acquire_handle(string m) {
     if (hmap.find(m) == hmap.end()) {
         h = new hinfo(m);
         hmap[m] = h;
+        h->refcnt++;
     } else if (!hmap[m]->del) {
         h = hmap[m];
+        h->refcnt++;
     }
-    h->refcnt++;
     return h;
 }