summaryrefslogtreecommitdiff
path: root/filter/source/config
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:24:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:24:12 +0100
commitc578d1c81274a1c0e5bdbdf5654bb4e186afdf49 (patch)
tree2345617c2a5bbbc7638d233723be2250b54d0bad /filter/source/config
parent1099ae1c16cd8323d877e894d8ce213ef8e1c349 (diff)
More loplugin:cstylecast: filter
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I39cc98d11a608d5fdad11c621b4cbde285204095
Diffstat (limited to 'filter/source/config')
-rw-r--r--filter/source/config/cache/cacheitem.cxx2
-rw-r--r--filter/source/config/cache/filtercache.cxx2
-rw-r--r--filter/source/config/cache/filterfactory.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/config/cache/cacheitem.cxx b/filter/source/config/cache/cacheitem.cxx
index 8b6db4f5fe0b..f67fb4114b8a 100644
--- a/filter/source/config/cache/cacheitem.cxx
+++ b/filter/source/config/cache/cacheitem.cxx
@@ -88,7 +88,7 @@ void CacheItem::validateUINames(const OUString& sActLocale)
css::uno::Sequence< css::beans::PropertyValue > CacheItem::getAsPackedPropertyValueList()
{
- sal_Int32 c = (sal_Int32)size();
+ sal_Int32 c = static_cast<sal_Int32>(size());
sal_Int32 i = 0;
css::uno::Sequence< css::beans::PropertyValue > lList(c);
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
index 13f779e4a533..1a00245c2ce3 100644
--- a/filter/source/config/cache/filtercache.cxx
+++ b/filter/source/config/cache/filtercache.cxx
@@ -1362,7 +1362,7 @@ void FilterCache::impl_load(EFillState eRequiredState)
}
// update fill state. Note: it's a bit field, which combines different parts.
- m_eFillState = (EFillState) ((sal_Int32)m_eFillState | (sal_Int32)eRequiredState);
+ m_eFillState = (EFillState) (static_cast<sal_Int32>(m_eFillState) | static_cast<sal_Int32>(eRequiredState));
// any data readed?
// yes! => validate it and update optimized structures.
diff --git a/filter/source/config/cache/filterfactory.cxx b/filter/source/config/cache/filterfactory.cxx
index 2e425c27ed63..ef8faeec31b2 100644
--- a/filter/source/config/cache/filterfactory.cxx
+++ b/filter/source/config/cache/filterfactory.cxx
@@ -320,7 +320,7 @@ OUStringList FilterFactory::impl_queryMatchByDocumentService(const QueryTokenize
// "iflags=-1" => not allowed
// "iflags=0" => not useful
// "iflags=283648" => only filter, which has set these flag field will be addressed
- sal_Int32 nCheckValue = aFilter.getUnpackedValueOrDefault(PROPNAME_FLAGS, (sal_Int32)0);
+ sal_Int32 nCheckValue = aFilter.getUnpackedValueOrDefault(PROPNAME_FLAGS, sal_Int32(0));
if (
(nIFlags > 0 ) &&
((nCheckValue & nIFlags) != nIFlags)
@@ -379,7 +379,7 @@ class stlcomp_removeIfMatchFlags
try
{
const CacheItem aFilter = m_pCache->getItem(FilterCache::E_FILTER, sFilter);
- sal_Int32 nFlags = aFilter.getUnpackedValueOrDefault(PROPNAME_FLAGS, ((sal_Int32)0));
+ sal_Int32 nFlags = aFilter.getUnpackedValueOrDefault(PROPNAME_FLAGS, (sal_Int32(0)));
bool bMatch = false;
if (m_bIFlags)