diff options
author | Michael Stahl <mst@openoffice.org> | 2011-10-11 14:19:08 +0200 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2011-10-11 17:57:00 +0200 |
commit | ae3e2f170045a1525f67e9f3e9b7e03d94f2b56b (patch) | |
tree | 8b7caefa4e6f3f7520653dc66f59bacecbeeda1a /sc/source/filter/xml/XMLTrackedChangesContext.cxx | |
parent | #i108468#: clean up xmluconv code duplication, part 1: (diff) | |
download | core-ae3e2f170045a1525f67e9f3e9b7e03d94f2b56b.tar.gz core-ae3e2f170045a1525f67e9f3e9b7e03d94f2b56b.zip |
#i108468#: clean up xmluconv code duplication, DateTime edition:
remove duplicate methods from SvXMLUnitConverter:
convertTime (all variants), convertDateTime (DateTime variants),
convertTimeDuration.
move convertAny from SvXMLUnitConverter to sax::converter.
Diffstat (limited to 'sc/source/filter/xml/XMLTrackedChangesContext.cxx')
-rw-r--r-- | sc/source/filter/xml/XMLTrackedChangesContext.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/filter/xml/XMLTrackedChangesContext.cxx b/sc/source/filter/xml/XMLTrackedChangesContext.cxx index c6c0b47272d3..f070aae481d5 100644 --- a/sc/source/filter/xml/XMLTrackedChangesContext.cxx +++ b/sc/source/filter/xml/XMLTrackedChangesContext.cxx @@ -692,7 +692,8 @@ SvXMLImportContext *ScXMLChangeInfoContext::CreateChildContext( sal_uInt16 nPref void ScXMLChangeInfoContext::EndElement() { aInfo.sUser = sAuthorBuffer.makeStringAndClear(); - GetScImport().GetMM100UnitConverter().convertDateTime(aInfo.aDateTime, sDateTimeBuffer.makeStringAndClear()); + ::sax::Converter::convertDateTime(aInfo.aDateTime, + sDateTimeBuffer.makeStringAndClear()); aInfo.sComment = sCommentBuffer.makeStringAndClear(); pChangeTrackingImportHelper->SetActionInfo(aInfo); } @@ -1203,7 +1204,7 @@ ScXMLChangeCellContext::ScXMLChangeCellContext( ScXMLImport& rImport, else if (IsXMLToken(aLocalName, XML_TIME_VALUE)) { bEmpty = false; - GetScImport().GetMM100UnitConverter().convertTime(rDateTimeValue, sValue); + ::sax::Converter::convertDuration(rDateTimeValue, sValue); fValue = rDateTimeValue; } } |