summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unomtabl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-04-23 20:23:29 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-27 07:21:45 +0000
commit9eb2e683ab051edd0bce18841f0ac05df5038854 (patch)
tree71e7a4d4b8389c09ff17024fceaed94668751082 /svx/source/unodraw/unomtabl.cxx
parentfd964e3b9f60bf2043fdc39ab8161a586049b481 (diff)
tdf#34465 remove calls to SfxItemSet::Put(const SfxPoolItem&, sal_uInt16)
and put an assert in SfxPoolItem::SetWhich() so nothing new creeps in. Change-Id: I6497650fa61ffb2b6941ffff2d471c8f117be1df Reviewed-on: https://gerrit.libreoffice.org/24324 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/unodraw/unomtabl.cxx')
-rw-r--r--svx/source/unodraw/unomtabl.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/unodraw/unomtabl.cxx b/svx/source/unodraw/unomtabl.cxx
index dc2eb3c808a8..5ed42a790cc2 100644
--- a/svx/source/unodraw/unomtabl.cxx
+++ b/svx/source/unodraw/unomtabl.cxx
@@ -151,17 +151,17 @@ void SAL_CALL SvxUnoMarkerTable::ImplInsertByName( const OUString& aName, const
SfxItemSet* pInSet = new SfxItemSet( *mpModelPool, XATTR_LINESTART, XATTR_LINEEND );
maItemSetVector.push_back( pInSet );
- XLineEndItem aEndMarker;
+ XLineEndItem aEndMarker(XATTR_LINEEND);
aEndMarker.SetName( aName );
aEndMarker.PutValue( aElement, 0 );
- pInSet->Put( aEndMarker, XATTR_LINEEND );
+ pInSet->Put( aEndMarker );
- XLineStartItem aStartMarker;
+ XLineStartItem aStartMarker(XATTR_LINESTART);
aStartMarker.SetName( aName );
aStartMarker.PutValue( aElement, 0 );
- pInSet->Put( aStartMarker, XATTR_LINESTART );
+ pInSet->Put( aStartMarker );
}
// XNameContainer
@@ -228,18 +228,18 @@ void SAL_CALL SvxUnoMarkerTable::replaceByName( const OUString& aApiName, const
const NameOrIndex *pItem = static_cast<const NameOrIndex *>(&((*aIter)->Get( XATTR_LINEEND ) ));
if( pItem->GetName() == aName )
{
- XLineEndItem aEndMarker;
+ XLineEndItem aEndMarker(XATTR_LINEEND);
aEndMarker.SetName( aName );
if( !aEndMarker.PutValue( aElement, 0 ) )
throw lang::IllegalArgumentException();
- (*aIter)->Put( aEndMarker, XATTR_LINEEND );
+ (*aIter)->Put( aEndMarker );
- XLineStartItem aStartMarker;
+ XLineStartItem aStartMarker(XATTR_LINESTART);
aStartMarker.SetName( aName );
aStartMarker.PutValue( aElement, 0 );
- (*aIter)->Put( aStartMarker, XATTR_LINESTART );
+ (*aIter)->Put( aStartMarker );
return;
}
++aIter;