projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed tabs and unneeded constructor
[invirt/third/libt4.git]
/
handle.cc
diff --git
a/handle.cc
b/handle.cc
index
d048ead
..
d32c895
100644
(file)
--- a/
handle.cc
+++ b/
handle.cc
@@
-1,9
+1,4
@@
#include "handle.h"
#include "handle.h"
-#include "threaded_log.h"
-#include "lock.h"
-#include <map>
-
-using std::map;
class hinfo {
public:
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;
if (hmap.find(m) == hmap.end()) {
h = new hinfo(m);
hmap[m] = h;
+ h->refcnt++;
} else if (!hmap[m]->del) {
h = hmap[m];
} else if (!hmap[m]->del) {
h = hmap[m];
+ h->refcnt++;
}
}
- h->refcnt++;
return h;
}
return h;
}