[REFACT] In ImportBaseDirWrapper: hasThunk turned to public

This commit is contained in:
hasherezade
2015-03-01 00:33:26 +01:00
parent 6f508340ae
commit 44ee978bb9
+5 -6
View File
@@ -33,6 +33,11 @@ public:
QList<offset_t> getThunksList() { return this->thunksList; }
bool hasThunk(offset_t thunk) {
std::map<offset_t, size_t>::iterator libItr = thunkToLibMap.find(thunk);
return (libItr == thunkToLibMap.end());
}
protected:
ImportBaseDirWrapper(PEFile *pe, pe:: dir_entry v_entryType)
: DataDirEntryWrapper(pe, v_entryType), importsCount(0) { }
@@ -42,12 +47,6 @@ protected:
void addMapping(ExeNodeWrapper *func);
ImportBaseEntryWrapper* thunkToLib(offset_t thunk);
ImportBaseFuncWrapper* thunkToFunction(offset_t thunk);
bool hasThunk(offset_t thunk) {
std::map<offset_t, size_t>::iterator libItr = thunkToLibMap.find(thunk);
return (libItr == thunkToLibMap.end());
}
//---
std::map<offset_t, size_t> thunkToLibMap;
QList<offset_t> thunksList;