summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-03 21:10:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-05 21:18:05 +0200
commiteaa689639fb3e02c204ab3fa132f79aed5b598c7 (patch)
tree18cba6c9811eb68919dcc5385194894b4c1d9bcd /sot
parent943a73ac8450fc0afc9792945a8f4428e903d9da (diff)
Improved loplugin:cstylecast to reference types: sot
Change-Id: I14135642998ef08dfb4aa4c7e10b327cf8d33de7
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()