diff --git a/src/xlsx/xlsxooxmlfile.cpp b/src/xlsx/xlsxooxmlfile.cpp index bbdf9ea..0dd295d 100644 --- a/src/xlsx/xlsxooxmlfile.cpp +++ b/src/xlsx/xlsxooxmlfile.cpp @@ -32,7 +32,7 @@ QT_BEGIN_NAMESPACE_XLSX OOXmlFilePrivate::OOXmlFilePrivate(OOXmlFile *q) - :q_ptr(q), relationships(new Relationships) + :relationships(new Relationships), q_ptr(q) { } diff --git a/src/xlsx/xlsxworksheet.cpp b/src/xlsx/xlsxworksheet.cpp index b5f2a89..0f71f5e 100755 --- a/src/xlsx/xlsxworksheet.cpp +++ b/src/xlsx/xlsxworksheet.cpp @@ -660,14 +660,14 @@ bool Worksheet::writeInlineString(const QString &row_column, const QString &valu bool Worksheet::writeInlineString(int row, int column, const QString &value, const Format &format) { Q_D(Worksheet); - int error = 0; + //int error = 0; QString content = value; if (d->checkDimensions(row, column)) return false; if (value.size() > XLSX_STRING_MAX) { content = value.left(XLSX_STRING_MAX); - error = -2; + //error = -2; } Format fmt = format.isValid() ? format : d->cellFormat(row, column); @@ -937,7 +937,7 @@ bool Worksheet::writeHyperlink(int row, int column, const QUrl &url, const Forma if (d->checkDimensions(row, column)) return false; - int error = 0; + //int error = 0; QString urlString = url.toString(); @@ -947,7 +947,7 @@ bool Worksheet::writeHyperlink(int row, int column, const QUrl &url, const Forma displayString.replace(QLatin1String("mailto:"), QString()); if (displayString.size() > XLSX_STRING_MAX) { displayString = displayString.left(XLSX_STRING_MAX); - error = -2; + //error = -2; } /*