summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-17 09:36:18 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-17 09:37:35 +0200
commitf62de9113a4866f7152acbe0e8221c594b7a7b68 (patch)
treee0faf400134d56e305be642dad2471e6a0c871b6 /xmloff
parentbc5c5365599672c7e5b57e31fe1c0b62764d24b2 (diff)
Comment why it's not a copy paste error
See http://nabble.documentfoundation.org/Question-unoType-for-getXmlToken-dbaccess-reportdesign-module-td4109071.html Thank you Lionel! Change-Id: I999bad0d6de0327bea7ba04a6c61a497d45f53a0
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/forms/propertyimport.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx
index 1b47bf3be147..c992b6f52073 100644
--- a/xmloff/source/forms/propertyimport.cxx
+++ b/xmloff/source/forms/propertyimport.cxx
@@ -241,6 +241,11 @@ Type PropertyConversion::xmlTypeToUnoType( const OUString& _rType )
if ( s_aTypeNameMap.empty() )
{
s_aTypeNameMap[ token::GetXMLToken( token::XML_BOOLEAN ) ] = ::getBooleanCppuType();
+ // Not a copy paste error, quotation from:
+ // http://nabble.documentfoundation.org/Question-unoType-for-getXmlToken-dbaccess-reportdesign-module-tp4109071p4109116.html
+ // all numeric types (including the UNO double)
+ // consistently map to XML_FLOAT, so taking the extra precision from the
+ // C++ type "float" to "double" makes absolute sense
s_aTypeNameMap[ token::GetXMLToken( token::XML_FLOAT ) ] = ::cppu::UnoType<double>::get();
s_aTypeNameMap[ token::GetXMLToken( token::XML_STRING ) ] = ::cppu::UnoType<OUString>::get();
s_aTypeNameMap[ token::GetXMLToken( token::XML_VOID ) ] = ::getVoidCppuType();