Skip to content

Commit

Permalink
Ubuntu 24.04 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rerdavies committed Nov 11, 2024
1 parent d612a53 commit d6bd5f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/lv2c/Lv2cTableElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ size_t Lv2cTableElement::RowCount() const
return ChildCount() / ColumnCount();
}

Lv2cElement::ptr &Lv2cTableElement::Child(size_t row, size_t column)
Lv2cElement::ptr &Lv2cTableElement::ChildCell(size_t row, size_t column)
{
return Children()[row * ColumnCount() + column];
}
Expand Down Expand Up @@ -118,7 +118,7 @@ Lv2cSize Lv2cTableElement::MeasureClient(
Lv2cSize childConstraint(columnDefinition.columnWidth- cellExtra.Width(), 0);
for (size_t r = 0; r < rowCount; ++r)
{
auto &child = Child(r, c);
auto &child = ChildCell(r, c);
child->Measure(childConstraint, childAvailable, context);
Lv2cSize size = child->MeasuredSize();
size = size + cellExtra;
Expand All @@ -138,7 +138,7 @@ Lv2cSize Lv2cTableElement::MeasureClient(

for (size_t r = 0; r < rowCount; ++r)
{
auto &child = Child(r, c);
auto &child = ChildCell(r, c);
child->Measure(childConstraint, childAvailable, context);
auto size = child->MeasuredSize();
size = size + cellExtra;
Expand Down Expand Up @@ -193,7 +193,7 @@ Lv2cSize Lv2cTableElement::MeasureClient(
Lv2cSize childAvailable(childWidth,clientAvailable.Height());
for (size_t r = 0; r < rowCount; ++r)
{
auto &child = Child(r, c);
auto &child = ChildCell(r, c);

child->Measure(childConstraint, childAvailable, context);
auto measureSize = child->MeasuredSize();
Expand Down Expand Up @@ -244,7 +244,7 @@ Lv2cSize Lv2cTableElement::Arrange(Lv2cSize available, Lv2cDrawingContext &conte
double x = 0;
for (size_t c = 0; c < columnCount; ++c)
{
auto &child = Child(r, c);
auto &child = ChildCell(r, c);
Lv2cSize measuredSize = child->MeasuredSize();
auto &columnDefinition = columnDefinitions[c];

Expand Down
1 change: 0 additions & 1 deletion src/lv2c/include/lv2c/Lv2cContainerElement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#pragma once


#pragma GCC diagnostic ignored "-Woverloaded-virtual" // GCC 13 warning.

namespace lv2c {
class Lv2cContainerElement: public Lv2cElement {
Expand Down
7 changes: 1 addition & 6 deletions src/lv2c/include/lv2c/Lv2cTableElement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,9 @@ namespace lv2c {

static ptr Create() { return std::make_shared<self>(); }

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Woverloaded-virtual" //GCC 12
#pragma GCC diagnostic ignored "-Woverloaded-virtual=" // GCC 13

Lv2cElement::ptr&Child(size_t row, size_t column);
Lv2cElement::ptr&ChildCell(size_t row, size_t column);


#pragma GCC diagnostic pop
public:
size_t ColumnCount() const;
Lv2cTableElement &ColumnCount(size_t columns);
Expand Down

0 comments on commit d6bd5f3

Please sign in to comment.