Browse Source

Documentation fix and MidiMessage constness clean-up.

tags/2021-05-28
jules 12 years ago
parent
commit
f68637f16b
3 changed files with 7 additions and 7 deletions
  1. +1
    -1
      modules/juce_audio_basics/midi/juce_MidiMessage.h
  2. +1
    -1
      modules/juce_graphics/placement/juce_RectanglePlacement.cpp
  3. +5
    -5
      modules/juce_graphics/placement/juce_RectanglePlacement.h

+ 1
- 1
modules/juce_audio_basics/midi/juce_MidiMessage.h View File

@@ -116,7 +116,7 @@ public:
@see getRawDataSize
*/
uint8* getRawData() const noexcept { return data; }
const uint8* getRawData() const noexcept { return data; }
/** Returns the number of bytes of data in the message.


+ 1
- 1
modules/juce_graphics/placement/juce_RectanglePlacement.cpp View File

@@ -87,7 +87,7 @@ void RectanglePlacement::applyTo (double& x, double& y, double& w, double& h,
}
}
const AffineTransform RectanglePlacement::getTransformToFit (const Rectangle<float>& source, const Rectangle<float>& destination) const noexcept
AffineTransform RectanglePlacement::getTransformToFit (const Rectangle<float>& source, const Rectangle<float>& destination) const noexcept
{
if (source.isEmpty())
return AffineTransform::identity;


+ 5
- 5
modules/juce_graphics/placement/juce_RectanglePlacement.h View File

@@ -144,12 +144,12 @@ public:
double destinationW,
double destinationH) const noexcept;
/** Returns the transform that should be applied to these source co-ordinates to fit them
/** Returns the rectangle that should be used to fit the given source rectangle
into the destination rectangle using the current flags.
*/
template <typename ValueType>
const Rectangle<ValueType> appliedTo (const Rectangle<ValueType>& source,
const Rectangle<ValueType>& destination) const noexcept
Rectangle<ValueType> appliedTo (const Rectangle<ValueType>& source,
const Rectangle<ValueType>& destination) const noexcept
{
double x = source.getX(), y = source.getY(), w = source.getWidth(), h = source.getHeight();
applyTo (x, y, w, h, static_cast <double> (destination.getX()), static_cast <double> (destination.getY()),
@@ -161,8 +161,8 @@ public:
/** Returns the transform that should be applied to these source co-ordinates to fit them
into the destination rectangle using the current flags.
*/
const AffineTransform getTransformToFit (const Rectangle<float>& source,
const Rectangle<float>& destination) const noexcept;
AffineTransform getTransformToFit (const Rectangle<float>& source,
const Rectangle<float>& destination) const noexcept;
private:


Loading…
Cancel
Save