Refactoring. Remove unused local variables.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-04-01 10:28:13 +03:00
parent 1d82d96562
commit 016e2db2e6
2 changed files with 1 additions and 4 deletions

View file

@ -534,7 +534,6 @@ bool QxtCsvModel::removeColumns(int col, int count, const QModelIndex& parent)
} }
emit beginRemoveColumns(parent, col, col + count); emit beginRemoveColumns(parent, col, col + count);
QxtCsvModelPrivate& d_ptr = qxt_d(); QxtCsvModelPrivate& d_ptr = qxt_d();
QString before, after;
for (int i = 0; i < rowCount(); i++) for (int i = 0; i < rowCount(); i++)
{ {
for (int j = 0; j < count; j++) for (int j = 0; j < count; j++)

View file

@ -385,9 +385,7 @@ QMarginsF VSettings::GetFields(const QMarginsF &def) const
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VSettings::SetFields(const QMarginsF &value) void VSettings::SetFields(const QMarginsF &value)
{ {
QVariant val = QVariant::fromValue(value); setValue(SettingFields, QVariant::fromValue(value));
QString str = val.toString();
setValue(SettingFields, val);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------