summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unoshap2.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:02:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:02:31 +0100
commitd9d92d20fdc414c5956290c10c4d473dcb836ceb (patch)
tree02c6079b0fbbae106e51dd307202ec2415f3340f /svx/source/unodraw/unoshap2.cxx
parenta5eddfbf45277eea21dd2271b36e9668313eadf3 (diff)
More loplugin:cstylecast: svx
Change-Id: If370ad12d2885ea9a6348736a3bcab618bc2e6ec
Diffstat (limited to 'svx/source/unodraw/unoshap2.cxx')
-rw-r--r--svx/source/unodraw/unoshap2.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx
index 35a07a496348..b8500ac7643b 100644
--- a/svx/source/unodraw/unoshap2.cxx
+++ b/svx/source/unodraw/unoshap2.cxx
@@ -670,7 +670,7 @@ namespace
{style::ParagraphAdjust_RIGHT, sal_Int16(awt::TextAlign::RIGHT)},
{style::ParagraphAdjust_BLOCK, sal_Int16(awt::TextAlign::RIGHT)},
{style::ParagraphAdjust_STRETCH, sal_Int16(awt::TextAlign::LEFT)},
- {(style::ParagraphAdjust)-1,-1}
+ {style::ParagraphAdjust(-1),-1}
};
void lcl_convertTextAlignmentToParaAdjustment( Any& _rValue )
@@ -681,7 +681,7 @@ namespace
for ( auto const & rEntry : aMapAdjustToAlign )
if ( nValue == rEntry.nFormValue )
{
- _rValue <<= (sal_uInt16)rEntry.nAPIValue;
+ _rValue <<= static_cast<sal_uInt16>(rEntry.nAPIValue);
return;
}
}
@@ -692,7 +692,7 @@ namespace
OSL_VERIFY( _rValue >>= nValue );
for ( auto const & rEntry : aMapAdjustToAlign )
- if ( (style::ParagraphAdjust)nValue == rEntry.nAPIValue )
+ if ( static_cast<style::ParagraphAdjust>(nValue) == rEntry.nAPIValue )
{
_rValue <<= rEntry.nFormValue;
return;
@@ -751,7 +751,7 @@ void SAL_CALL SvxShapeControl::setPropertyValue( const OUString& aPropertyName,
awt::FontSlant nSlant;
if( !(aValue >>= nSlant ) )
throw lang::IllegalArgumentException();
- aConvertedValue <<= (sal_Int16)nSlant;
+ aConvertedValue <<= static_cast<sal_Int16>(nSlant);
}
else if ( aFormsName == "Align" )
{
@@ -792,7 +792,7 @@ uno::Any SAL_CALL SvxShapeControl::getPropertyValue( const OUString& aPropertyNa
sal_Int16 nSlant = sal_Int16();
if ( aValue >>= nSlant )
{
- eSlant = (awt::FontSlant)nSlant;
+ eSlant = static_cast<awt::FontSlant>(nSlant);
}
else
{
@@ -883,7 +883,7 @@ uno::Any SAL_CALL SvxShapeControl::getPropertyDefault( const OUString& aProperty
{
sal_Int16 nSlant( 0 );
aDefault >>= nSlant;
- aDefault <<= (awt::FontSlant)nSlant;
+ aDefault <<= static_cast<awt::FontSlant>(nSlant);
}
else if ( aFormsName == "Align" )
{
title='2017-10-01 18:17:11 +0200'>2017-10-01throw more useful uno::Exception'sNoel Grandin if we're going to throw the base class of the exception hierarchy, we can at least put a useful message in there to make the source a little bit easier to locate. Change-Id: I2f3106c99ba25125eacef8fa77e2f3a2c89f2566 Reviewed-on: https://gerrit.libreoffice.org/42968 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> 2017-07-21migrate to boost::gettextCaolán McNamara * all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a 2017-06-30loplugin:oncevarStephan Bergmann Change-Id: Id19ffb1d4817a882bc3f8f73c3ead932c5a92aeb 2017-01-26Remove dynamic exception specificationsStephan Bergmann ...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> 2016-07-15loplugin:redundantcastStephan Bergmann Change-Id: I2d963eb8395b8eca776032d32d72f5ec85891c70 2016-05-30com::sun::star->css in connectivityNoel Grandin Change-Id: I9489e92dc89a6d83a26ff4f0d9aad26acd28ad9f Reviewed-on: https://gerrit.libreoffice.org/25537 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> 2016-04-22loplugin:salboolStephan Bergmann Change-Id: Ibcae25d2476de37842e4a0e670b5951f431195a2 2015-11-10loplugin:nullptr (automatic rewrite; Mac-specific code)Stephan Bergmann Change-Id: I1d4f6975a7f3deac65510b3bf7ab80e9d01a3a6c 2015-06-16Fix typosAndrea Gelmini Change-Id: I528752dfabeb31d14c350f79819b521537ab9b56 Reviewed-on: https://gerrit.libreoffice.org/16300 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> 2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann Change-Id: Id2361bd7b50f4724211661b024583b8a3445500b 2015-03-29loplugin:cstylecastStephan Bergmann Change-Id: I20b7936d2bb11363a701ca649deba31d53c76868 2015-02-03tdf#89048 Macab initialize record list even for never-match condition.Norbert Thiebaud Change-Id: I323f6532d00f30cde50616e9399cad6bbe00cb8c