From aa0ef72ce5c4af7cd7736de350d1bd24f8170ecc 2012-08-30 12:25:56 From: Marek Rosa Date: 2012-08-30 12:25:56 Subject: [PATCH] XY model mappers: removed wrongly placed return statements --- diff --git a/src/xychart/qhxymodelmapper.cpp b/src/xychart/qhxymodelmapper.cpp index 34dc35f..d6f0484 100644 --- a/src/xychart/qhxymodelmapper.cpp +++ b/src/xychart/qhxymodelmapper.cpp @@ -183,7 +183,7 @@ int QHXYModelMapper::xRow() const void QHXYModelMapper::setXRow(int xRow) { if (xRow != xSection()) { - return QXYModelMapper::setXSection(xRow); + QXYModelMapper::setXSection(xRow); emit xRowChanged(); } } @@ -196,7 +196,7 @@ int QHXYModelMapper::yRow() const void QHXYModelMapper::setYRow(int yRow) { if (yRow != ySection()) { - return QXYModelMapper::setYSection(yRow); + QXYModelMapper::setYSection(yRow); emit yRowChanged(); } } diff --git a/src/xychart/qvxymodelmapper.cpp b/src/xychart/qvxymodelmapper.cpp index 4df23df..94ca74f 100644 --- a/src/xychart/qvxymodelmapper.cpp +++ b/src/xychart/qvxymodelmapper.cpp @@ -183,7 +183,7 @@ int QVXYModelMapper::xColumn() const void QVXYModelMapper::setXColumn(int xColumn) { if (xColumn != xSection()) { - return QXYModelMapper::setXSection(xColumn); + QXYModelMapper::setXSection(xColumn); emit xColumnChanged(); } } @@ -196,7 +196,7 @@ int QVXYModelMapper::yColumn() const void QVXYModelMapper::setYColumn(int yColumn) { if (yColumn != ySection()) { - return QXYModelMapper::setYSection(yColumn); + QXYModelMapper::setYSection(yColumn); emit yColumnChanged(); } }