mirror of
https://github.com/QtExcel/QXlsx.git
synced 2025-01-30 05:02:52 +08:00
Remove warnings about unused variables
This commit is contained in:
parent
d3888e0870
commit
f39645aee4
@ -115,7 +115,6 @@ QVariant Cell::readValue() const
|
|||||||
ret = d->value;
|
ret = d->value;
|
||||||
|
|
||||||
Format fmt = this->format();
|
Format fmt = this->format();
|
||||||
int noFormatIndex = fmt.numberFormatIndex();
|
|
||||||
|
|
||||||
if (isDateTime())
|
if (isDateTime())
|
||||||
{
|
{
|
||||||
|
@ -1343,6 +1343,7 @@ bool ChartPrivate::loadXmlAxisEG_AxShared(QXmlStreamReader &reader, XlsxAxis* ax
|
|||||||
|
|
||||||
bool ChartPrivate::loadXmlAxisEG_AxShared_Scaling(QXmlStreamReader &reader, XlsxAxis* axis)
|
bool ChartPrivate::loadXmlAxisEG_AxShared_Scaling(QXmlStreamReader &reader, XlsxAxis* axis)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(axis);
|
||||||
Q_ASSERT(reader.name() == QLatin1String("scaling"));
|
Q_ASSERT(reader.name() == QLatin1String("scaling"));
|
||||||
|
|
||||||
while ( !reader.atEnd() )
|
while ( !reader.atEnd() )
|
||||||
@ -1352,8 +1353,6 @@ bool ChartPrivate::loadXmlAxisEG_AxShared_Scaling(QXmlStreamReader &reader, Xlsx
|
|||||||
{
|
{
|
||||||
if ( reader.name() == QLatin1String("orientation") )
|
if ( reader.name() == QLatin1String("orientation") )
|
||||||
{
|
{
|
||||||
QString strOrientation = reader.attributes().value(QLatin1String("val")).toString();
|
|
||||||
int debugLine = 0;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1440,6 +1439,7 @@ bool ChartPrivate::loadXmlAxisEG_AxShared_Title(QXmlStreamReader &reader, XlsxAx
|
|||||||
|
|
||||||
bool ChartPrivate::loadXmlAxisEG_AxShared_Title_Overlay(QXmlStreamReader &reader, XlsxAxis* axis)
|
bool ChartPrivate::loadXmlAxisEG_AxShared_Title_Overlay(QXmlStreamReader &reader, XlsxAxis* axis)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(axis);
|
||||||
Q_ASSERT(reader.name() == QLatin1String("overlay"));
|
Q_ASSERT(reader.name() == QLatin1String("overlay"));
|
||||||
|
|
||||||
while ( !reader.atEnd() )
|
while ( !reader.atEnd() )
|
||||||
@ -1546,6 +1546,7 @@ bool ChartPrivate::loadXmlAxisEG_AxShared_Title_Tx_Rich_P(QXmlStreamReader &read
|
|||||||
|
|
||||||
bool ChartPrivate::loadXmlAxisEG_AxShared_Title_Tx_Rich_P_pPr(QXmlStreamReader &reader, XlsxAxis* axis)
|
bool ChartPrivate::loadXmlAxisEG_AxShared_Title_Tx_Rich_P_pPr(QXmlStreamReader &reader, XlsxAxis* axis)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(axis);
|
||||||
Q_ASSERT(reader.name() == QLatin1String("pPr"));
|
Q_ASSERT(reader.name() == QLatin1String("pPr"));
|
||||||
|
|
||||||
while ( !reader.atEnd() )
|
while ( !reader.atEnd() )
|
||||||
@ -1555,8 +1556,7 @@ bool ChartPrivate::loadXmlAxisEG_AxShared_Title_Tx_Rich_P_pPr(QXmlStreamReader &
|
|||||||
{
|
{
|
||||||
if ( reader.name() == QLatin1String("defRPr") )
|
if ( reader.name() == QLatin1String("defRPr") )
|
||||||
{
|
{
|
||||||
QString strDefRPr = reader.readElementText();
|
reader.readElementText();
|
||||||
int debugLine = 0;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -998,7 +998,7 @@ bool Styles::readBorder(QXmlStreamReader &reader, Format &border)
|
|||||||
|
|
||||||
bool Styles::readCellStyleXfs(QXmlStreamReader &reader)
|
bool Styles::readCellStyleXfs(QXmlStreamReader &reader)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(reader);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1547,7 +1547,6 @@ void WorksheetPrivate::saveXmlCellData(QXmlStreamWriter &writer, int row, int co
|
|||||||
{
|
{
|
||||||
if (cell->hasFormula())
|
if (cell->hasFormula())
|
||||||
{
|
{
|
||||||
int si = cell->formula().d->si;
|
|
||||||
QString strFormula = cell->formula().d->formula;
|
QString strFormula = cell->formula().d->formula;
|
||||||
|
|
||||||
cell->formula().saveToXml(writer);
|
cell->formula().saveToXml(writer);
|
||||||
@ -1575,7 +1574,6 @@ void WorksheetPrivate::saveXmlCellData(QXmlStreamWriter &writer, int row, int co
|
|||||||
|
|
||||||
if (cell->hasFormula())
|
if (cell->hasFormula())
|
||||||
{
|
{
|
||||||
int si = cell->formula().d->si;
|
|
||||||
QString strFormula = cell->formula().d->formula;
|
QString strFormula = cell->formula().d->formula;
|
||||||
|
|
||||||
cell->formula().saveToXml(writer);
|
cell->formula().saveToXml(writer);
|
||||||
@ -1676,7 +1674,6 @@ void WorksheetPrivate::saveXmlCellData(QXmlStreamWriter &writer, int row, int co
|
|||||||
|
|
||||||
if (cell->hasFormula())
|
if (cell->hasFormula())
|
||||||
{
|
{
|
||||||
int si = cell->formula().d->si;
|
|
||||||
QString strFormula = cell->formula().d->formula;
|
QString strFormula = cell->formula().d->formula;
|
||||||
|
|
||||||
cell->formula().saveToXml(writer);
|
cell->formula().saveToXml(writer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user