summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:23:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:23:31 +0100
commit867d0f5f7b1fb4c487aaee1ae6ab707971a9b8d1 (patch)
treefc6a164b6adc54229b8704a2299994865c41d2d0 /fpicker
parentcf8b8cad053e0e9783cdc8f08ce886e2ae4b7eb0 (diff)
More loplugin:cstylecast: fpicker
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: I41dc5653f0da71b0efadc9ce09b22231d3321827
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/OfficeControlAccess.cxx2
-rw-r--r--fpicker/source/office/OfficeControlAccess.hxx10
-rw-r--r--fpicker/source/office/iodlg.cxx2
-rw-r--r--fpicker/source/office/iodlgimp.cxx2
4 files changed, 8 insertions, 8 deletions
diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx
index 32a0927c687c..968e29a825ed 100644
--- a/fpicker/source/office/OfficeControlAccess.cxx
+++ b/fpicker/source/office/OfficeControlAccess.cxx
@@ -737,7 +737,7 @@ namespace svt
if ( LISTBOX_ENTRY_NOTFOUND != nSelected )
aReturn <<= static_cast< ListBox const * >( _pControl )->GetSelectedEntryPos();
else
- aReturn <<= (sal_Int32)-1;
+ aReturn <<= sal_Int32(-1);
}
break;
diff --git a/fpicker/source/office/OfficeControlAccess.hxx b/fpicker/source/office/OfficeControlAccess.hxx
index 34fc9a622d88..279e78b2ae29 100644
--- a/fpicker/source/office/OfficeControlAccess.hxx
+++ b/fpicker/source/office/OfficeControlAccess.hxx
@@ -50,11 +50,11 @@ namespace svt
namespace InternalFilePickerElementIds
{
- static const sal_Int16 PUSHBUTTON_HELP = (sal_Int16)0x1000;
- static const sal_Int16 TOOLBOXBUTOON_DEFAULT_LOCATION = (sal_Int16)0x1001;
- static const sal_Int16 TOOLBOXBUTOON_LEVEL_UP = (sal_Int16)0x1002;
- static const sal_Int16 TOOLBOXBUTOON_NEW_FOLDER = (sal_Int16)0x1003;
- static const sal_Int16 FIXEDTEXT_CURRENTFOLDER = (sal_Int16)0x1004;
+ static const sal_Int16 PUSHBUTTON_HELP = sal_Int16(0x1000);
+ static const sal_Int16 TOOLBOXBUTOON_DEFAULT_LOCATION = sal_Int16(0x1001);
+ static const sal_Int16 TOOLBOXBUTOON_LEVEL_UP = sal_Int16(0x1002);
+ static const sal_Int16 TOOLBOXBUTOON_NEW_FOLDER = sal_Int16(0x1003);
+ static const sal_Int16 FIXEDTEXT_CURRENTFOLDER = sal_Int16(0x1004);
}
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index ff486ddb3d0a..053f24a0e70b 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -1433,7 +1433,7 @@ IMPL_LINK( SvtFileDialog, SelectHdl_Impl, SvTreeListBox*, pBox, void )
{
if ( !pUserData->mbIsFolder )
aObj.removeSegment();
- OUString aName = aObj.getFSysPath( (FSysStyle)(FSysStyle::Detect & ~FSysStyle::Vos) );
+ OUString aName = aObj.getFSysPath( static_cast<FSysStyle>(FSysStyle::Detect & ~FSysStyle::Vos) );
pImpl->_pEdFileName->SetText( aName );
pImpl->_pEdFileName->SetSelection( Selection( 0, aName.getLength() ) );
_aPath = pUserData->maURL;
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx
index ba5f9da7c065..5b9593caba87 100644
--- a/fpicker/source/office/iodlgimp.cxx
+++ b/fpicker/source/office/iodlgimp.cxx
@@ -275,7 +275,7 @@ void SvtExpFileDlg_Impl::InitFilterList( )
;
// add all following entries
- while ( (sal_Int16)nPos >= 0 )
+ while ( static_cast<sal_Int16>(nPos) >= 0 )
InsertFilterListEntry( m_aFilter[ nPos-- ].get() );
}