1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Avoided some minor compiler warnings.

This commit is contained in:
jules 2012-11-11 17:06:14 +00:00
parent ac5030b909
commit 9393c1bbc9
7 changed files with 8 additions and 8 deletions

View file

@ -949,7 +949,7 @@ String MidiMessage::getMidiNoteName (int note, bool useSharps, bool includeOctav
return String::empty;
}
const double MidiMessage::getMidiNoteInHertz (int noteNumber, const double frequencyOfA) noexcept
double MidiMessage::getMidiNoteInHertz (int noteNumber, const double frequencyOfA) noexcept
{
return frequencyOfA * pow (2.0, (noteNumber - 69) / 12.0);
}

View file

@ -891,7 +891,7 @@ public:
The frequencyOfA parameter is an optional frequency for 'A', normally 440-444Hz for concert pitch.
@see getMidiNoteName
*/
static const double getMidiNoteInHertz (int noteNumber, const double frequencyOfA = 440.0) noexcept;
static double getMidiNoteInHertz (int noteNumber, const double frequencyOfA = 440.0) noexcept;
/** Returns the standard name of a GM instrument.

View file

@ -875,7 +875,7 @@ public:
String error (setup.manager->setAudioDeviceSetup (config, true));
if (! error.isEmpty())
if (error.isNotEmpty())
{
//xxx
}

View file

@ -455,7 +455,7 @@ void MidiKeyboardComponent::drawWhiteNote (int midiNoteNumber,
const String text (getWhiteNoteText (midiNoteNumber));
if (! text.isEmpty())
if (text.isNotEmpty())
{
g.setColour (textColour);
g.setFont (Font (jmin (12.0f, keyWidth * 0.9f)).withHorizontalScale (0.8f));

View file

@ -134,7 +134,7 @@ public:
void setOrientation (Orientation newOrientation);
/** Returns the keyboard's current direction. */
const Orientation getOrientation() const noexcept { return orientation; }
Orientation getOrientation() const noexcept { return orientation; }
/** Sets the range of midi notes that the keyboard will be limited to.

View file

@ -524,7 +524,7 @@ size_t String::getByteOffsetOfEnd() const noexcept
return (size_t) (((char*) text.findTerminatingNull().getAddress()) - (char*) text.getAddress());
}
const juce_wchar String::operator[] (int index) const noexcept
juce_wchar String::operator[] (int index) const noexcept
{
jassert (index == 0 || (index > 0 && index <= (int) text.lengthUpTo ((size_t) index + 1)));
return text [index];
@ -2289,7 +2289,7 @@ public:
expect (s5.containsWholeWordIgnoreCase (L"Word"));
expect (s5.containsWholeWordIgnoreCase ("Word3"));
expect (! s5.containsWholeWordIgnoreCase (L"Wordx"));
expect (!s5.containsWholeWordIgnoreCase ("xWord2"));
expect (! s5.containsWholeWordIgnoreCase ("xWord2"));
expect (s5.containsNonWhitespaceChars());
expect (s5.containsOnly ("ordw23 "));
expect (! String (" \n\r\t").containsNonWhitespaceChars());

View file

@ -579,7 +579,7 @@ public:
then to use that to iterate the string.
@see getCharPointer
*/
const juce_wchar operator[] (int index) const noexcept;
juce_wchar operator[] (int index) const noexcept;
/** Returns the final character of the string.
If the string is empty this will return 0.