Kaydet (Commit) 867d0f5f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst cf8b8cad
......@@ -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;
......
......@@ -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);
}
......
......@@ -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;
......
......@@ -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() );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment