Fixed: Formatting after delete[]. A recent version of Uncrustify is needed for the new uncrustify.cfg.
This commit is contained in:
1 parent
fc9bb23711
commit
a78542ef0d
8 files changed
+14
-14
No files matched your search
@@ -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())
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -102,4 +102,3 @@ void GraphicEQFilterGUIItem::setIndex(int value)
|
||||
{
|
||||
index = value;
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user