diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-07 08:42:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-07 10:45:05 +0200 |
commit | 868d8c8f0fdf376b0a3eb545ee841c9c12ffee3b (patch) | |
tree | 7e8b919732f3d73cfb77974c489ee864103b2882 /xmloff | |
parent | 9479171a09ba4c73afa8b40a5c2590df3b6d5415 (diff) |
loplugin:unnecessaryparen handle parens inside call expr
stick to single-arg function calls, sometimes parens in multi-arg calls
might be there for clarity
Change-Id: Ib80190c571ce65b5d219a88056687042de749e74
Reviewed-on: https://gerrit.libreoffice.org/39676
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/sdxmlexp.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/impastpl.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx index 66b8bf41eab7..4397126201cb 100644 --- a/xmloff/source/draw/sdxmlexp.cxx +++ b/xmloff/source/draw/sdxmlexp.cxx @@ -1518,7 +1518,7 @@ void SdXMLExport::ImpWriteHeaderFooterDecls() AddAttribute(XML_NAMESPACE_PRESENTATION, XML_NAME, sBuffer.makeStringAndClear()); SvXMLElementExport aElem(*this, XML_NAMESPACE_PRESENTATION, XML_HEADER_DECL, true, true); - Characters((*aIter)); + Characters(*aIter); } } @@ -1535,7 +1535,7 @@ void SdXMLExport::ImpWriteHeaderFooterDecls() AddAttribute(XML_NAMESPACE_PRESENTATION, XML_NAME, sBuffer.makeStringAndClear()); SvXMLElementExport aElem(*this, XML_NAMESPACE_PRESENTATION, XML_FOOTER_DECL, false, false); - Characters((*aIter)); + Characters(*aIter); } } diff --git a/xmloff/source/style/impastpl.cxx b/xmloff/source/style/impastpl.cxx index 56e1c6cc7f33..cebd614357d9 100644 --- a/xmloff/source/style/impastpl.cxx +++ b/xmloff/source/style/impastpl.cxx @@ -128,10 +128,10 @@ data2string(void *data, result.append(OUString::number((*static_cast<const sal_uInt64*>(data)), 16)); break; case typelib_TypeClass_FLOAT: - result.append(OUString::number((*static_cast<const float*>(data)))); + result.append(OUString::number(*static_cast<const float*>(data))); break; case typelib_TypeClass_DOUBLE: - result.append(OUString::number((*static_cast<const double*>(data)))); + result.append(OUString::number(*static_cast<const double*>(data))); break; case typelib_TypeClass_CHAR: result.append("U+"); |