summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-09 13:59:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-12 07:37:24 +0100
commit2f5868c4309d49ad495e0763b5b57d1f7f98e377 (patch)
treeba498138c67436ce30b5d9585353c50a1c5020bf /include
parentcb34e6083cdc82333d64ad9224e0d25e895d1dae (diff)
loplugin:redundantfcast look for redundant copies in return statements
Change-Id: I5f416c865dfe1c36018784246a8007452eb42008 Reviewed-on: https://gerrit.libreoffice.org/50996 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svl/zforlist.hxx2
-rw-r--r--include/ucbhelper/macros.hxx6
2 files changed, 3 insertions, 5 deletions
diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx
index e0c2b95d61c9..dbc4929fef50 100644
--- a/include/svl/zforlist.hxx
+++ b/include/svl/zforlist.hxx
@@ -62,7 +62,7 @@ constexpr size_t NF_MAX_FORMAT_SYMBOLS = 100;
/// number formatter was constructed with.
constexpr sal_uInt32 NF_STANDARD_FORMAT_TEXT = SV_MAX_COUNT_STANDARD_FORMATS;
-#define NUMBERFORMAT_ENTRY_NOT_FOUND sal_uInt32(0xffffffff) /// MAX_ULONG
+constexpr sal_uInt32 NUMBERFORMAT_ENTRY_NOT_FOUND = 0xffffffff; /// MAX_ULONG
enum class SvNumFormatType : sal_Int16
{
diff --git a/include/ucbhelper/macros.hxx b/include/ucbhelper/macros.hxx
index da0b2dea8feb..36cf524f1fda 100644
--- a/include/ucbhelper/macros.hxx
+++ b/include/ucbhelper/macros.hxx
@@ -179,13 +179,11 @@ Class::getSupportedServiceNames() \
css::uno::Reference< css::lang::XSingleServiceFactory > \
Class::createServiceFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& rxServiceMgr ) \
{ \
- return css::uno::Reference< \
- css::lang::XSingleServiceFactory >( \
- cppu::createOneInstanceFactory( \
+ return cppu::createOneInstanceFactory( \
rxServiceMgr, \
Class::getImplementationName_Static(), \
Class##_CreateInstance, \
- Class::getSupportedServiceNames_Static() ) ); \
+ Class::getSupportedServiceNames_Static() ); \
}
#endif /* ! INCLUDED_UCBHELPER_MACROS_HXX */