[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 9 09:16:24 UTC 2021
sc/source/filter/xml/XMLExportDatabaseRanges.cxx | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
New commits:
commit 7699d89a5e8a442a77504260d70048392110b232
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jul 9 09:04:38 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jul 9 11:15:52 2021 +0200
cid#1487029 Identical code for different branches
Change-Id: Icb0c555772a92654e857226087ad80cbf91e25b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118661
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
index 106f24e593c2..db50c1ecd703 100644
--- a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
+++ b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx
@@ -481,14 +481,7 @@ private:
// Store the 1st value for backward compatibility.
const ScQueryEntry::Item& rItem = rItems.front();
- if (rItem.meType == ScQueryEntry::ByValue)
- {
- mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_VALUE, rItem.maString.getString());
- }
- else
- {
- mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_VALUE, rItem.maString.getString());
- }
+ mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_VALUE, rItem.maString.getString());
mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_OPERATOR, OUString("="));
mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_FIELD_NUMBER, OUString::number(rEntry.nField - nFieldStart));
if (bCaseSens)
More information about the Libreoffice-commits
mailing list