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

Documentation fix and MidiMessage constness clean-up.

This commit is contained in:
jules 2013-03-05 18:37:18 +00:00
parent 4ad853c7b9
commit f68637f16b
3 changed files with 7 additions and 7 deletions

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.

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;

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: