summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-11-25 16:01:34 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-11-25 22:50:15 +0100
commit7e91df3a62e604b3137606e0dfd28879527efc17 (patch)
treec0ddc0bae9759745a9e6c1f9c0da012447a5614a /starmath
parent90a7da15bd14c53cb409f110590ca965c6879bd0 (diff)
Turn on clang-format for these files
I (tried to) keep these files consistent locally with astyle in the past, switching to clang-format makes sure that the recent problem with introducing inconsistencies with automatic loplugin rewrites doesn't happen again. Change-Id: I86def0d13a1d16f8cedb7cf9927a48ce14c2b3bf Reviewed-on: https://gerrit.libreoffice.org/83690 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/unofilter.cxx33
1 files changed, 11 insertions, 22 deletions
diff --git a/starmath/source/unofilter.cxx b/starmath/source/unofilter.cxx
index 5886e9e6e0b9..719681af4b4b 100644
--- a/starmath/source/unofilter.cxx
+++ b/starmath/source/unofilter.cxx
@@ -21,15 +21,11 @@
using namespace ::com::sun::star;
-namespace {
-
+namespace
+{
/// Invokes the MathType importer via UNO.
-class MathTypeFilter : public cppu::WeakImplHelper
- <
- document::XFilter,
- document::XImporter,
- lang::XServiceInfo
- >
+class MathTypeFilter
+ : public cppu::WeakImplHelper<document::XFilter, document::XImporter, lang::XServiceInfo>
{
uno::Reference<lang::XComponent> m_xDstDoc;
@@ -48,7 +44,6 @@ public:
sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
};
-
}
MathTypeFilter::MathTypeFilter() = default;
@@ -94,19 +89,14 @@ sal_Bool MathTypeFilter::filter(const uno::Sequence<beans::PropertyValue>& rDesc
return bSuccess;
}
-void MathTypeFilter::cancel()
-{
-}
+void MathTypeFilter::cancel() {}
-void MathTypeFilter::setTargetDocument(const uno::Reference< lang::XComponent >& xDoc)
+void MathTypeFilter::setTargetDocument(const uno::Reference<lang::XComponent>& xDoc)
{
m_xDstDoc = xDoc;
}
-OUString MathTypeFilter::getImplementationName()
-{
- return "com.sun.star.comp.Math.MathTypeFilter";
-}
+OUString MathTypeFilter::getImplementationName() { return "com.sun.star.comp.Math.MathTypeFilter"; }
sal_Bool MathTypeFilter::supportsService(const OUString& rServiceName)
{
@@ -115,14 +105,13 @@ sal_Bool MathTypeFilter::supportsService(const OUString& rServiceName)
uno::Sequence<OUString> MathTypeFilter::getSupportedServiceNames()
{
- uno::Sequence<OUString> aRet =
- {
- OUString("com.sun.star.document.ImportFilter")
- };
+ uno::Sequence<OUString> aRet = { OUString("com.sun.star.document.ImportFilter") };
return aRet;
}
-extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* com_sun_star_comp_Math_MathTypeFilter_get_implementation(uno::XComponentContext* /*pCtx*/, uno::Sequence<uno::Any> const& /*rSeq*/)
+extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface*
+com_sun_star_comp_Math_MathTypeFilter_get_implementation(uno::XComponentContext* /*pCtx*/,
+ uno::Sequence<uno::Any> const& /*rSeq*/)
{
return cppu::acquire(new MathTypeFilter);
}