Fixed: Formatting after delete[]. A recent version of Uncrustify is needed for the new uncrustify.cfg.

This commit is contained in:
jthedering committed 2017-06-18 19:04:27 +00:00
1 parent fc9bb23711
commit a78542ef0d
8 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -77,9 +77,9 @@ void LogHelper::log(const char* file, int line, const void* caller, bool trace,
{
HANDLE con = GetStdHandle(STD_OUTPUT_HANDLE);
if (trace)
SetConsoleTextAttribute(con, 2); // Set console color to green
SetConsoleTextAttribute(con, 2);// Set console color to green
else
SetConsoleTextAttribute(con, 12); // Set console color to red
SetConsoleTextAttribute(con, 12);// Set console color to red
}
if (!compact)
+2 -2
View File
@@ -262,7 +262,7 @@ void VSTPluginInstance::writeToEffect(const std::wstring& chunkData, const std::
BYTE* buf = new BYTE[bufSize];
if (CryptStringToBinaryW(chunkData.c_str(), 0, CRYPT_STRING_BASE64, buf, &bufSize, NULL, NULL) == TRUE)
effect->dispatcher(effect, effSetChunk, 1, bufSize, buf, 0.0f);
delete[]buf;
delete[] buf;
}
}
else
@@ -296,7 +296,7 @@ void VSTPluginInstance::readFromEffect(std::wstring& chunkData, std::unordered_m
wchar_t* string = new wchar_t[stringLength];
if (CryptBinaryToStringW(chunk, size, CRYPT_STRING_BASE64 | CRYPT_STRING_NOCRLF, string, &stringLength) == TRUE)
chunkData = string;
delete[]string;
delete[] string;
}
else
{