1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Avoided a few more compiler warnings.

This commit is contained in:
jules 2012-12-03 17:58:33 +00:00
parent 02c0cd009c
commit 0f9b76240c
3 changed files with 9 additions and 9 deletions

View file

@ -910,9 +910,9 @@ private:
{
if (currentBuffer != nullptr)
{
jassert (inNumberFrames == currentBuffer->getNumSamples()); // if this ever happens, might need to add extra handling
jassert (inNumberFrames == (UInt32) currentBuffer->getNumSamples()); // if this ever happens, might need to add extra handling
for (int i = 0; i < ioData->mNumberBuffers; ++i)
for (UInt32 i = 0; i < ioData->mNumberBuffers; ++i)
{
const int bufferChannel = inBusNumber * numInputBusChannels + i;
@ -940,7 +940,7 @@ private:
const double time = Time::getMillisecondCounterHiRes() * 0.001;
const MIDIPacket* packet = &pktlist->packet[0];
for (int i = 0; i < pktlist->numPackets; ++i)
for (UInt32 i = 0; i < pktlist->numPackets; ++i)
{
midiConcatenator.pushMidiData (packet->data, (int) packet->length, time, (void*) nullptr, *this);
packet = MIDIPacketNext (packet);
@ -1110,7 +1110,7 @@ private:
int maximumNumIns = 0;
int maximumNumOuts = 0;
for (int i = 0; i < supportedChannelsSize / sizeof (AUChannelInfo); ++i)
for (int i = 0; i < (int) (supportedChannelsSize / sizeof (AUChannelInfo)); ++i)
{
const int inChannels = (int) supportedChannels[i].inChannels;
const int outChannels = (int) supportedChannels[i].outChannels;

View file

@ -1823,7 +1823,7 @@ private:
String s;
if (v == 0 || v == -1)
if (v == 0 || (int) v == -1)
v = getVersionNumber();
if (v != 0)
@ -2576,7 +2576,7 @@ private:
return true;
}
void mouseDown (int x, int y)
void handleMouseDown (int x, int y)
{
if (! alreadyInside)
{
@ -2591,7 +2591,7 @@ private:
}
}
void paint()
void handlePaint()
{
if (ComponentPeer* const peer = getPeer())
{

View file

@ -55,8 +55,8 @@ public:
virtual HIViewRef attachView (WindowRef windowRef, HIViewRef rootView) = 0;
virtual void removeView (HIViewRef embeddedView) = 0;
virtual void mouseDown (int, int) {}
virtual void paint() {}
virtual void handleMouseDown (int, int) {}
virtual void handlePaint() {}
virtual bool getEmbeddedViewSize (int& w, int& h)
{