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
@@ -229,8 +229,8 @@ int main(int argc, char** argv)
sf_close(outFile);
outFile = NULL;
delete[]buf;
delete[]buf2;
delete[] buf;
delete[] buf2;
}
if (!noPauseArg.getValue())
+4 -4
View File
@@ -66,11 +66,11 @@ GraphicEQFilterGUI::GraphicEQFilterGUI(GraphicEQFilter* filter, QString configPa
ui->toolBar->addAction(ui->actionNormalizeResponse);
ui->toolBar->addAction(ui->actionResetResponse);
connect(scene, SIGNAL(nodeInserted(int, double, double)), this, SLOT(insertRow(int, double, double)));
connect(scene, SIGNAL(nodeInserted(int,double,double)), this, SLOT(insertRow(int,double,double)));
connect(scene, SIGNAL(nodeRemoved(int)), this, SLOT(removeRow(int)));
connect(scene, SIGNAL(nodeUpdated(int, double, double)), this, SLOT(updateRow(int, double, double)));
connect(scene, SIGNAL(nodeMoved(int, int)), this, SLOT(moveRow(int, int)));
connect(scene, SIGNAL(nodeSelectionChanged(int, bool)), this, SLOT(selectRow(int, bool)));
connect(scene, SIGNAL(nodeUpdated(int,double,double)), this, SLOT(updateRow(int,double,double)));
connect(scene, SIGNAL(nodeMoved(int,int)), this, SLOT(moveRow(int,int)));
connect(scene, SIGNAL(nodeSelectionChanged(int,bool)), this, SLOT(selectRow(int,bool)));
connect(scene, SIGNAL(updateModel()), this, SIGNAL(updateModel()));
scene->setNodes(filter->getNodes());
-1
View File
@@ -102,4 +102,3 @@ void GraphicEQFilterGUIItem::setIndex(int value)
{
index = value;
}
+1 -1
View File
@@ -111,7 +111,7 @@ FilterEngine::~FilterEngine()
cleanupConfigurations();
for (vector<IFilterFactory*>::iterator it = factories.begin(); it != factories.end(); it++)
delete*it;
delete *it;
delete parser;
CloseHandle(loadSemaphore);
+1 -1
View File
@@ -95,7 +95,7 @@ vector<wstring> ConvolutionFilter::initialize(float sampleRate, unsigned maxFram
for (unsigned i = 0; i < fileChannelCount; i++)
{
delete[]bufs[i];
delete[] bufs[i];
}
delete bufs;
delete interleavedBuf;
+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
{
+2 -1
View File
@@ -257,7 +257,8 @@ sp_after_for_colon=add
sp_before_for_colon=add
sp_cmt_cpp_start=add
sp_endif_cmt=add
sp_after_new=remove
sp_after_new=add
sp_between_new_paren=remove
sp_before_tr_emb_cmt=add
nl_fcall_brace=add
nl_enum_brace=add