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

Improved loplugin:cstylecast to reference types: sot

Change-Id: I14135642998ef08dfb4aa4c7e10b327cf8d33de7
üst 943a73ac
......@@ -1321,8 +1321,8 @@ SotDestinationEntry_Impl const aDestinationArray[] =
bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVector, SotClipboardFormatId nId )
{
DataFlavorExVector::iterator aIter( ( (DataFlavorExVector&) rDataFlavorExVector ).begin() );
DataFlavorExVector::iterator aEnd( ( (DataFlavorExVector&) rDataFlavorExVector ).end() );
auto aIter( rDataFlavorExVector.begin() );
auto aEnd( rDataFlavorExVector.end() );
bool bRet = false;
while( aIter != aEnd )
......
......@@ -831,11 +831,11 @@ void Storage::SetClass( const SvGlobalName & rClass,
if( Validate( true ) )
{
// set the class name in the root entry
pEntry->m_aEntry.SetClassId( (const ClsId&) rClass.GetCLSID() );
pEntry->m_aEntry.SetClassId( rClass.GetCLSID() );
pEntry->SetDirty();
// then create the streams
StgCompObjStream aCompObj( *this, true );
aCompObj.GetClsId() = (const ClsId&) rClass.GetCLSID();
aCompObj.GetClsId() = rClass.GetCLSID();
aCompObj.GetCbFormat() = nOriginalClipFormat;
aCompObj.GetUserName() = rUserTypeName;
if( !aCompObj.Store() )
......
......@@ -2392,7 +2392,7 @@ void UCBStorage::SetClassId( const ClsId& rClsId )
const ClsId& UCBStorage::GetClassId() const
{
return ( const ClsId& ) pImp->m_aClassId.GetCLSID();
return pImp->m_aClassId.GetCLSID();
}
SvGlobalName UCBStorage::GetClassName()
......
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