summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/formats.cxx4
-rw-r--r--sot/source/sdstor/stg.cxx4
-rw-r--r--sot/source/sdstor/ucbstorage.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx
index ad0a0c0a5525..b2fde5323c06 100644
--- a/sot/source/base/formats.cxx
+++ b/sot/source/base/formats.cxx
@@ -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 )
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx
index f2a01cf4eb75..04e1ea3f18ca 100644
--- a/sot/source/sdstor/stg.cxx
+++ b/sot/source/sdstor/stg.cxx
@@ -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() )
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index abd2a244f1a2..bfe31956e8f6 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -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()