summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-14 14:34:42 +0200
committerNoel Grandin <noel@peralex.com>2014-05-14 16:54:27 +0200
commitb2096deaff52f462e2df4e7bdc9816bb3604fb08 (patch)
tree3df2f9284132042730e12c3f11b6b7a5f13d35cf /basic
parent83d77931e03908c1718d9dc48f29c1db984fba85 (diff)
various loplugin:passsequencebyref
Change-Id: Id1045a7f66b4fa10b6491587ba07246a31ceba72
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 3e41094df8c2..3a53c0c9cba8 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -1835,7 +1835,7 @@ class DialogInfo_Impl : public DialogInfoHelper
uno::Sequence< sal_Int8 > mData;
public:
- DialogInfo_Impl( const OUString& aName, uno::Sequence< sal_Int8 > Data )
+ DialogInfo_Impl( const OUString& aName, const uno::Sequence< sal_Int8 >& Data )
: maName( aName ), mData( Data ) {}
// Methods XStarBasicDialogInfo
@@ -2030,9 +2030,9 @@ uno::Sequence< sal_Int8 > implGetDialogData( SbxObject* pDialog )
return aData;
}
-SbxObject* implCreateDialog( uno::Sequence< sal_Int8 > aData )
+SbxObject* implCreateDialog( const uno::Sequence< sal_Int8 >& aData )
{
- sal_Int8* pData = aData.getArray();
+ sal_Int8* pData = const_cast< uno::Sequence< sal_Int8 >& >(aData).getArray();
SvMemoryStream aMemStream( pData, aData.getLength(), STREAM_READ );
SbxBase* pBase = SbxBase::Load( aMemStream );
return dynamic_cast<SbxObject*>(pBase);