mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed some const violation errors
This commit is contained in:
parent
03fef746d5
commit
cff37f5b6a
32 changed files with 225 additions and 127 deletions
|
|
@ -183,14 +183,14 @@ private:
|
|||
int getTotalSize (int start, const int end) const noexcept
|
||||
{
|
||||
int tot = 0;
|
||||
while (start < end) tot += get(start++).size;
|
||||
while (start < end) tot += get (start++).size;
|
||||
return tot;
|
||||
}
|
||||
|
||||
int getMinimumSize (int start, const int end) const noexcept
|
||||
{
|
||||
int tot = 0;
|
||||
while (start < end) tot += get(start++).minSize;
|
||||
while (start < end) tot += get (start++).minSize;
|
||||
return tot;
|
||||
}
|
||||
|
||||
|
|
@ -199,7 +199,7 @@ private:
|
|||
int tot = 0;
|
||||
while (start < end)
|
||||
{
|
||||
const int mx = get(start++).maxSize;
|
||||
const int mx = get (start++).maxSize;
|
||||
if (mx > 0x100000)
|
||||
return mx;
|
||||
|
||||
|
|
@ -429,9 +429,9 @@ void ConcertinaPanel::applyLayout (const PanelSizes& sizes, const bool animate)
|
|||
|
||||
for (int i = 0; i < holders.size(); ++i)
|
||||
{
|
||||
PanelHolder& p = *holders.getUnchecked(i);
|
||||
PanelHolder& p = *holders.getUnchecked (i);
|
||||
|
||||
const int h = sizes.get(i).size;
|
||||
const int h = sizes.get (i).size;
|
||||
const Rectangle<int> pos (0, y, w, h);
|
||||
|
||||
if (animate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue