本文整理汇总了C++中deleteAndZero函数的典型用法代码示例。如果您正苦于以下问题:C++ deleteAndZero函数的具体用法?C++ deleteAndZero怎么用?C++ deleteAndZero使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了deleteAndZero函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: deleteAndZero
AutomizerAudioProcessorEditor::~AutomizerAudioProcessorEditor()
{
deleteAndZero (groupComponent);
deleteAndZero (groupComponent2);
deleteAndZero (groupComponent3);
deleteAndZero (groupComponent4);
}
示例2: deleteAndZero
void CtrlrLog::setLogToFile (const bool _logToFile)
{
logToFile = _logToFile;
if (logToFile)
{
Logger::writeToLog ("CtrlrLog::setLogToFile: " + File::getSpecialLocation(File::currentApplicationFile).withFileExtension(".log").getFullPathName());
if (fileLogger)
{
deleteAndZero (fileLogger);
}
fileLogger = new FileLogger (File::getSpecialLocation(File::currentApplicationFile).withFileExtension(".log"), "Ctrlr debug log");
Logger::setCurrentLogger (fileLogger);
}
else
{
if (fileLogger)
{
Logger::setCurrentLogger (this);
deleteAndZero (fileLogger);
}
else
{
Logger::setCurrentLogger (this);
}
}
}
示例3: deleteAndZero
CtrlrPanelResourceEditor::~CtrlrPanelResourceEditor()
{
deleteAndZero (resourceList);
deleteAndZero (add);
deleteAndZero (remove);
deleteAndZero (reload);
}
示例4: getGlobalSettings
StandaloneFilterWindow::~StandaloneFilterWindow()
{
PropertySet* const globalSettings = getGlobalSettings();
globalSettings->setValue (T("windowX"), getX());
globalSettings->setValue (T("windowY"), getY());
deleteAndZero (optionsButton);
if (globalSettings != 0 && deviceManager != 0)
{
XmlElement* const xml = deviceManager->createStateXml();
globalSettings->setValue (T("audioSetup"), xml);
delete xml;
}
deleteAndZero (deviceManager);
if (globalSettings != 0 && filter != 0)
{
JUCE_NAMESPACE::MemoryBlock data;
filter->getStateInformation (data);
globalSettings->setValue (T("filterState"), data.toBase64Encoding());
}
deleteFilter();
}
示例5: deleteAndZero
AudioResamplingNode::~AudioResamplingNode()
{
delete[] continuousDataBuffer;
deleteAndZero(tempBuffer);
deleteAndZero(destBuffer);
delete filter;
}
示例6: sl
void CtrlrMidiDevice::closeDevice()
{
if (getType() == CtrlrMidiDeviceManager::outputDevice)
{
if (outJucePtr != nullptr)
{
const ScopedLock sl(deviceLock);
outJucePtr->stopBackgroundThread();
deleteAndZero (outJucePtr);
}
}
else
{
if (inJucePtr != nullptr)
{
const ScopedLock sl(deviceLock);
inJucePtr->stop();
deleteAndZero (inJucePtr);
}
}
deviceListeners.clear();
setProperty (Ids::midiDevState, false);
}
示例7: deleteAndZero
CtrlrMIDIMon::~CtrlrMIDIMon()
{
owner.getCtrlrLog().removeListener (this);
deleteAndZero (resizer);
deleteAndZero (outMon);
deleteAndZero (inMon);
}
示例8: clearTabs
XEQTabPanel::~XEQTabPanel()
{
clearTabs ();
deleteAndZero (mainComponent);
deleteAndZero (aboutComponent);
}
示例9: dispatchPendingMessages
PianoRoll::~PianoRoll()
{
dispatchPendingMessages();
deleteAndZero(playline);
deleteAndZero(bg);
deleteAndZero(noteLayer);
}
示例10: shutdown
void shutdown()
{
mainWindow = 0;
appProperties->closeFiles();
deleteAndZero (commandManager);
deleteAndZero (appProperties);
}
示例11: deleteAndZero
void PitchestimatorpluginAudioProcessor::releaseResources()
{
deleteAndZero(fft);
deleteAndZero(HS);
free(X);
free(f0Area);
fftw_free(fftData);
}
示例12: deleteAndZero
CtrlrLuaMethodEditor::~CtrlrLuaMethodEditor()
{
deleteAndZero (methodEditArea);
componentTree.removeListener (this);
masterReference.clear();
methodTree->deleteRootItem();
deleteAndZero (methodTree);
deleteAndZero (resizer);
}
示例13: setHost
SurfaceComponent::~SurfaceComponent()
{
setHost (0);
deleteAndZero (editor);
deleteAndZero (internal);
deleteAndZero (properties);
deleteAndZero (horizontalDividerBar);
}
示例14: shutdown
void shutdown()
{
filterWindow = 0;// = nullptr;
appProperties->closeFiles();
deleteAndZero(appProperties);
deleteAndZero(defaultPropSet);
deleteAndZero(cabbageTimer);
deleteAndZero(lookAndFeel);
deleteAndZero(lookAndFeelBasic);
}
示例15: deleteAndZero
ProjectComponent::~ProjectComponent()
{
NotificationCenter::defaultCenter().removeObserver(*_newDiagramObserver);
NotificationCenter::defaultCenter().removeObserver(*_projectOpenedObserver);
NotificationCenter::defaultCenter().removeObserver(*_newProjectCreatedObserver);
deleteAndZero(_newDiagramObserver);
deleteAndZero(_projectOpenedObserver);
deleteAndZero(_newProjectCreatedObserver);
deleteAllChildren();
}