Skip to content

Commit e0ae767

Browse files
committed
修复了一些导致在Linux下编译失败的代码错误
1 parent df0400a commit e0ae767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encrypt/EncryptData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ QByteArray DecryptWithWindowsDPAPI(const QByteArray& encryptedData)
3737
}
3838

3939
#else
40-
QByteArray SimpleEncrypt(const QByteArray& data, const QByteArray& key = "SimpleKey")
40+
QByteArray SimpleEncrypt(const QByteArray& data, const QByteArray& key)
4141
{
4242
QByteArray ba = data;
4343
for (int i = 0; i < ba.size(); ++i){
@@ -46,7 +46,7 @@ QByteArray SimpleEncrypt(const QByteArray& data, const QByteArray& key = "Simple
4646
return ba;
4747
}
4848

49-
QByteArray SimpleDecrypt(const QByteArray& data, const QByteArray& key = "SimpleKey")
49+
QByteArray SimpleDecrypt(const QByteArray& data, const QByteArray& key)
5050
{
5151
QByteArray ba = data;
5252
for (int i = 0; i < ba.size(); ++i){

0 commit comments

Comments
 (0)