mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +00:00
Fixed some VS2013 compiler warnings
This commit is contained in:
parent
bdc5a800a6
commit
af6b81fbc5
2 changed files with 15 additions and 13 deletions
|
|
@ -304,9 +304,9 @@ private:
|
|||
{
|
||||
if (combo == &layouts)
|
||||
{
|
||||
if (auto* processor = owner.getAudioProcessor())
|
||||
if (auto* audioProcessor = owner.getAudioProcessor())
|
||||
{
|
||||
if (auto* bus = processor->getBus (isInput, currentBus))
|
||||
if (auto* bus = audioProcessor->getBus (isInput, currentBus))
|
||||
{
|
||||
auto selectedNumChannels = layouts.getSelectedId();
|
||||
|
||||
|
|
@ -332,9 +332,9 @@ private:
|
|||
{
|
||||
if (btn == &enabledToggle && enabledToggle.isEnabled())
|
||||
{
|
||||
if (auto* processor = owner.getAudioProcessor())
|
||||
if (auto* audioProcessor = owner.getAudioProcessor())
|
||||
{
|
||||
if (auto* bus = processor->getBus (isInput, currentBus))
|
||||
if (auto* bus = audioProcessor->getBus (isInput, currentBus))
|
||||
{
|
||||
if (bus->isEnabled() != enabledToggle.getToggleState())
|
||||
{
|
||||
|
|
@ -368,11 +368,11 @@ private:
|
|||
//==============================================================================
|
||||
void addColumn() override
|
||||
{
|
||||
if (auto* processor = owner.getAudioProcessor())
|
||||
if (auto* audioProcessor = owner.getAudioProcessor())
|
||||
{
|
||||
if (processor->canAddBus (isInput))
|
||||
if (audioProcessor->canAddBus (isInput))
|
||||
{
|
||||
if (processor->addBus (isInput))
|
||||
if (audioProcessor->addBus (isInput))
|
||||
{
|
||||
updateBusButtons();
|
||||
updateBusLayout();
|
||||
|
|
@ -391,13 +391,13 @@ private:
|
|||
|
||||
void removeColumn() override
|
||||
{
|
||||
if (auto* processor = owner.getAudioProcessor())
|
||||
if (auto* audioProcessor = owner.getAudioProcessor())
|
||||
{
|
||||
if (processor->getBusCount (isInput) > 1 && processor->canRemoveBus (isInput))
|
||||
if (audioProcessor->getBusCount (isInput) > 1 && audioProcessor->canRemoveBus (isInput))
|
||||
{
|
||||
if (processor->removeBus (isInput))
|
||||
if (audioProcessor->removeBus (isInput))
|
||||
{
|
||||
currentBus = jmin (processor->getBusCount (isInput) - 1, currentBus);
|
||||
currentBus = jmin (audioProcessor->getBusCount (isInput) - 1, currentBus);
|
||||
|
||||
updateBusButtons();
|
||||
updateBusLayout();
|
||||
|
|
|
|||
|
|
@ -72,9 +72,11 @@
|
|||
<VS2017 targetFolder="Builds/VisualStudio2017">
|
||||
<CONFIGURATIONS>
|
||||
<CONFIGURATION name="Debug" winWarningLevel="4" generateManifest="1" winArchitecture="x64"
|
||||
isDebug="1" optimisation="1" targetName="UnitTestRunner"/>
|
||||
isDebug="1" optimisation="1" targetName="UnitTestRunner" debugInformationFormat="ProgramDatabase"
|
||||
warningsAreErrors="1"/>
|
||||
<CONFIGURATION name="Release" winWarningLevel="4" generateManifest="1" winArchitecture="x64"
|
||||
isDebug="0" optimisation="3" targetName="UnitTestRunner"/>
|
||||
isDebug="0" optimisation="3" targetName="UnitTestRunner" debugInformationFormat="None"
|
||||
warningsAreErrors="1"/>
|
||||
</CONFIGURATIONS>
|
||||
<MODULEPATHS>
|
||||
<MODULEPATH id="juce_video" path="../../modules"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue