Skip to content

Commit fabe0bc

Browse files
author
Damian Nowakowski
committed
Better encapsulation
1 parent 07cd7a8 commit fabe0bc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Source/VariableObfuscator/Public/VarOb.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
#define VO_CHK 2
1616

1717
template<typename T>
18-
struct TVarOb
18+
class TVarOb
1919
{
2020
using FChunkX = FChunkN<(sizeof(T)-1)/4+1>;
21+
22+
private:
23+
2124
FChunkX Data[3] = {};
2225

2326
inline void MemMangle()
@@ -41,6 +44,8 @@ struct TVarOb
4144
}
4245
}
4346

47+
public:
48+
4449
TVarOb(T V = T())
4550
{
4651
static_assert(TVarObSupportedType<T>::Value, "Unsupported Type");

Source/VariableObfuscator/Public/VarObDoOnce.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "CoreMinimal.h"
88

9-
struct FVarObDoOnce
9+
class FVarObDoOnce
1010
{
1111

1212
public:

0 commit comments

Comments
 (0)