Skip to content

Commit 9c3c38f

Browse files
committed
Warning fixes
1 parent 53a12f6 commit 9c3c38f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

demo/source/demos/CRCDemo.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,8 @@ class CRCTableListBoxModel final : public TableListBoxModel
358358
int getNumRows() override { return dataUnits.size(); }
359359
/** @internal */
360360
int getNumRows() const { return dataUnits.size(); }
361-
362361
/** @internal */
363-
void paintRowBackground (Graphics& g, int rowNumber, int width, int height, bool rowIsSelected) override
364-
{
365-
}
362+
void paintRowBackground (Graphics&, int, int, int, bool) override { }
366363

367364
/** @internal */
368365
void paintCell (Graphics& g, int rowNumber, int columnId, int width, int height, bool rowIsSelected) override
@@ -472,8 +469,8 @@ class CRCTableListBoxModel final : public TableListBoxModel
472469
/** Adds a test case to the data units array */
473470
void addTestCase (int numBits, uint64 poly, uint64 xorIn, uint64 xorOut, bool refIn, bool refOut)
474471
{
475-
auto* unit = dataUnits.add (new CRCDataUnit());
476-
unit->configure (numBits, poly, xorIn, xorOut, refIn, refOut);
472+
if (auto* unit = dataUnits.add (new CRCDataUnit()))
473+
unit->configure (numBits, poly, xorIn, xorOut, refIn, refOut);
477474
}
478475

479476
//==============================================================================

0 commit comments

Comments
 (0)