summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Encrypt.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-27 17:42:26 +0200
committerAki <please@ignore.pl>2022-03-27 17:42:26 +0200
commita12e588079700d55a0b788fea2df7727c2e41f52 (patch)
tree690072569624c73af5043b3619acaab4d298b1fa /Stars45/Encrypt.cpp
parent72bb517271dad40a440533ad0796a88247011199 (diff)
downloadstarshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz
starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/Encrypt.cpp')
-rw-r--r--Stars45/Encrypt.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Stars45/Encrypt.cpp b/Stars45/Encrypt.cpp
index ba07099..44d07ca 100644
--- a/Stars45/Encrypt.cpp
+++ b/Stars45/Encrypt.cpp
@@ -12,7 +12,6 @@
*/
-#include "MemDebug.h"
#include "Encrypt.h"
#include "Utils.h"
@@ -80,7 +79,7 @@ Encryption::Encrypt(Text block)
len += 8;
}
- BYTE* work = new(__FILE__,__LINE__) BYTE[len];
+ BYTE* work = new BYTE[len];
ZeroMemory(work, len);
CopyMemory(work, block.data(), block.length());
@@ -107,7 +106,7 @@ Encryption::Decrypt(Text block)
return Text();
}
- BYTE* work = new(__FILE__,__LINE__) BYTE[len];
+ BYTE* work = new BYTE[len];
CopyMemory(work, block.data(), len);
long* v = (long*) work;
@@ -129,7 +128,7 @@ Text
Encryption::Encode(Text block)
{
int len = block.length() * 2;
- char* work = new(__FILE__,__LINE__) char[len + 1];
+ char* work = new char[len + 1];
for (int i = 0; i < block.length(); i++) {
BYTE b = (BYTE) (block.data()[i]);
@@ -150,7 +149,7 @@ Text
Encryption::Decode(Text block)
{
int len = block.length() / 2;
- char* work = new(__FILE__,__LINE__) char[len + 1];
+ char* work = new char[len + 1];
for (int i = 0; i < len; i++) {
char u = block[2*i];