Skip to content

Commit 4e270c6

Browse files
committed
[SharedCache] Remove using namespace statement from headers
1 parent 8e4f68b commit 4e270c6

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

view/sharedcache/api/sharedcacheapi.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#include "view/macho/machoview.h"
66
#include "sharedcachecore.h"
77

8-
using namespace BinaryNinja;
9-
108
namespace SharedCacheAPI {
119
template<class T>
1210
class SCRefCountObject {
@@ -130,7 +128,6 @@ namespace SharedCacheAPI {
130128
std::string image;
131129
};
132130

133-
using namespace BinaryNinja;
134131
struct SharedCacheMachOHeader : public SharedCacheCore::MetadataSerializable<SharedCacheMachOHeader> {
135132
uint64_t textBase = 0;
136133
uint64_t loadCommandOffset = 0;

view/sharedcache/core/MetadataSerializable.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
#include "../api/sharedcachecore.h"
4646
#include "view/macho/machoview.h"
4747

48+
using namespace BinaryNinja;
49+
4850
namespace SharedCacheCore {
4951

5052
#define MSS(name) context.store(#name, name)
@@ -53,8 +55,6 @@ namespace SharedCacheCore {
5355
#define MSL(name) name = context.load<decltype(name)>(#name)
5456
#define MSL_CAST(name, storedType, type) name = (type)context.load<storedType>(#name)
5557

56-
using namespace BinaryNinja;
57-
5858
struct DeserializationContext;
5959

6060
struct SerializationContext {

view/sharedcache/core/SharedCache.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,7 @@ namespace SharedCacheCore {
378378
#else
379379

380380
#endif
381-
382-
using namespace BinaryNinja;
381+
383382
struct SharedCacheMachOHeader : public MetadataSerializable<SharedCacheMachOHeader>
384383
{
385384
uint64_t textBase = 0;

0 commit comments

Comments
 (0)