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

More loplugin:cstylecast: framework

Change-Id: Iffd183cb21b43aaa66dd55cc6c453ebeae36a3e1
üst 2c6f5a5b
......@@ -155,14 +155,14 @@ OReadStatusBarDocumentHandler::OReadStatusBarDocumentHandler(
OUString temp( XMLNS_STATUSBAR );
temp += XMLNS_FILTER_SEPARATOR;
temp += OUString::createFromAscii( StatusBarEntries[i].aEntryName );
m_aStatusBarMap.emplace( temp, (StatusBar_XML_Entry)i );
m_aStatusBarMap.emplace( temp, static_cast<StatusBar_XML_Entry>(i) );
}
else
{
OUString temp( XMLNS_XLINK );
temp += XMLNS_FILTER_SEPARATOR;
temp += OUString::createFromAscii( StatusBarEntries[i].aEntryName );
m_aStatusBarMap.emplace( temp, (StatusBar_XML_Entry)i );
m_aStatusBarMap.emplace( temp, static_cast<StatusBar_XML_Entry>(i) );
}
}
......
......@@ -135,14 +135,14 @@ OReadToolBoxDocumentHandler::OReadToolBoxDocumentHandler( const Reference< XInde
OUString temp( XMLNS_TOOLBAR );
temp += XMLNS_FILTER_SEPARATOR;
temp += OUString::createFromAscii( ToolBoxEntries[i].aEntryName );
m_aToolBoxMap.emplace( temp, (ToolBox_XML_Entry)i );
m_aToolBoxMap.emplace( temp, static_cast<ToolBox_XML_Entry>(i) );
}
else
{
OUString temp( XMLNS_XLINK );
temp += XMLNS_FILTER_SEPARATOR;
temp += OUString::createFromAscii( ToolBoxEntries[i].aEntryName );
m_aToolBoxMap.emplace( temp, (ToolBox_XML_Entry)i );
m_aToolBoxMap.emplace( temp, static_cast<ToolBox_XML_Entry>(i) );
}
}
......
......@@ -1071,7 +1071,7 @@ void ImageManagerImpl::reload()
if ( pInsertedImages != nullptr )
{
ConfigurationEvent aInsertEvent;
aInsertEvent.aInfo <<=(sal_uInt16)i;
aInsertEvent.aInfo <<=static_cast<sal_uInt16>(i);
aInsertEvent.Accessor <<= xOwner;
aInsertEvent.Source = xOwner;
aInsertEvent.ResourceURL = m_aResourceString;
......@@ -1082,7 +1082,7 @@ void ImageManagerImpl::reload()
if ( pReplacedImages != nullptr )
{
ConfigurationEvent aReplaceEvent;
aReplaceEvent.aInfo <<= (sal_uInt16)i;
aReplaceEvent.aInfo <<= static_cast<sal_uInt16>(i);
aReplaceEvent.Accessor <<= xOwner;
aReplaceEvent.Source = xOwner;
aReplaceEvent.ResourceURL = m_aResourceString;
......@@ -1094,7 +1094,7 @@ void ImageManagerImpl::reload()
if ( pRemovedImages != nullptr )
{
ConfigurationEvent aRemoveEvent;
aRemoveEvent.aInfo <<= (sal_uInt16)i;
aRemoveEvent.aInfo <<= static_cast<sal_uInt16>(i);
aRemoveEvent.Accessor <<= xOwner;
aRemoveEvent.Source = xOwner;
aRemoveEvent.ResourceURL = m_aResourceString;
......
......@@ -625,7 +625,7 @@ Any ConfigurationAccess_WindowState::impl_insertCacheAndReturnSequence( const OU
if (( nDockingArea >= 0 ) &&
( nDockingArea <= sal_Int32( DockingArea_DOCKINGAREA_RIGHT )))
{
aWindowStateInfo.aDockingArea = (DockingArea)nDockingArea;
aWindowStateInfo.aDockingArea = static_cast<DockingArea>(nDockingArea);
nMask |= WINDOWSTATE_MASK_DOCKINGAREA;
a <<= aWindowStateInfo.aDockingArea;
bAddToSeq = true;
......@@ -820,7 +820,7 @@ ConfigurationAccess_WindowState::WindowStateInfo& ConfigurationAccess_WindowStat
if (( nDockingArea >= 0 ) &&
( nDockingArea <= sal_Int32( DockingArea_DOCKINGAREA_RIGHT )))
{
aWindowStateInfo.aDockingArea = (DockingArea)nDockingArea;
aWindowStateInfo.aDockingArea = static_cast<DockingArea>(nDockingArea);
nMask |= WINDOWSTATE_MASK_DOCKINGAREA;
}
}
......
......@@ -123,7 +123,7 @@ OReadImagesDocumentHandler::OReadImagesDocumentHandler( ImageListsDescriptor& aI
temp.append( XMLNS_FILTER_SEPARATOR );
temp.appendAscii( ImagesEntries[i].aEntryName );
m_aImageMap.emplace( temp.makeStringAndClear(), (Image_XML_Entry)i );
m_aImageMap.emplace( temp.makeStringAndClear(), static_cast<Image_XML_Entry>(i) );
}
// reset states
......
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