diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-14 14:34:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-05-14 16:54:27 +0200 |
commit | b2096deaff52f462e2df4e7bdc9816bb3604fb08 (patch) | |
tree | 3df2f9284132042730e12c3f11b6b7a5f13d35cf | |
parent | 83d77931e03908c1718d9dc48f29c1db984fba85 (diff) |
various loplugin:passsequencebyref
Change-Id: Id1045a7f66b4fa10b6491587ba07246a31ceba72
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 6 | ||||
-rw-r--r-- | drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 24 | ||||
-rw-r--r-- | drawinglayer/source/dumper/EnhancedShapeDumper.hxx | 24 | ||||
-rw-r--r-- | drawinglayer/source/dumper/XShapeDumper.cxx | 20 | ||||
-rw-r--r-- | editeng/source/uno/unotext.cxx | 2 | ||||
-rw-r--r-- | embeddedobj/source/inc/docholder.hxx | 2 | ||||
-rw-r--r-- | framework/source/fwe/xml/statusbardocumenthandler.cxx | 12 | ||||
-rw-r--r-- | framework/source/fwe/xml/toolboxdocumenthandler.cxx | 18 | ||||
-rw-r--r-- | package/source/xstor/xstorage.cxx | 8 | ||||
-rw-r--r-- | package/source/xstor/xstorage.hxx | 8 | ||||
-rw-r--r-- | sax/qa/cppunit/test_converter.cxx | 4 | ||||
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 4 | ||||
-rw-r--r-- | sdext/source/minimizer/unodialog.cxx | 14 | ||||
-rw-r--r-- | sdext/source/minimizer/unodialog.hxx | 14 | ||||
-rw-r--r-- | ucb/source/ucp/file/filnot.cxx | 3 | ||||
-rw-r--r-- | ucb/source/ucp/file/filnot.hxx | 2 | ||||
-rw-r--r-- | uui/source/iahndl-ssl.cxx | 2 | ||||
-rw-r--r-- | uui/source/iahndl.cxx | 2 | ||||
-rw-r--r-- | uui/source/iahndl.hxx | 2 |
19 files changed, 86 insertions, 85 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); diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx index 9cbc6b8309b0..681508ef665d 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx @@ -466,7 +466,7 @@ void EnhancedShapeDumper::dumpTextRotateAngleAsAttribute(double aTextRotateAngle xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textRotateAngle"), "%f", aTextRotateAngle); } -void EnhancedShapeDumper::dumpAdjustmentValuesAsElement(uno::Sequence< drawing::EnhancedCustomShapeAdjustmentValue> aAdjustmentValues) +void EnhancedShapeDumper::dumpAdjustmentValuesAsElement(const uno::Sequence< drawing::EnhancedCustomShapeAdjustmentValue>& aAdjustmentValues) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "AdjustmentValues" )); sal_Int32 nLength = aAdjustmentValues.getLength(); @@ -547,7 +547,7 @@ void EnhancedShapeDumper::dumpPropertyValueAsElement(beans::PropertyValue aPrope xmlTextWriterEndElement( xmlWriter ); } -void EnhancedShapeDumper::dumpExtrusionAsElement(uno::Sequence< beans::PropertyValue > aExtrusion) +void EnhancedShapeDumper::dumpExtrusionAsElement(const uno::Sequence< beans::PropertyValue >& aExtrusion) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Extrusion" )); sal_Int32 nLength = aExtrusion.getLength(); @@ -558,7 +558,7 @@ void EnhancedShapeDumper::dumpExtrusionAsElement(uno::Sequence< beans::PropertyV xmlTextWriterEndElement( xmlWriter ); } -void EnhancedShapeDumper::dumpPathAsElement(uno::Sequence< beans::PropertyValue > aPath) +void EnhancedShapeDumper::dumpPathAsElement(const uno::Sequence< beans::PropertyValue >& aPath) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Path" )); sal_Int32 nLength = aPath.getLength(); @@ -569,7 +569,7 @@ void EnhancedShapeDumper::dumpPathAsElement(uno::Sequence< beans::PropertyValue xmlTextWriterEndElement( xmlWriter ); } -void EnhancedShapeDumper::dumpTextPathAsElement(uno::Sequence< beans::PropertyValue > aTextPath) +void EnhancedShapeDumper::dumpTextPathAsElement(const uno::Sequence< beans::PropertyValue >& aTextPath) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "TextPath" )); sal_Int32 nLength = aTextPath.getLength(); @@ -580,7 +580,7 @@ void EnhancedShapeDumper::dumpTextPathAsElement(uno::Sequence< beans::PropertyVa xmlTextWriterEndElement( xmlWriter ); } -void EnhancedShapeDumper::dumpEquationsAsElement(uno::Sequence< OUString > aEquations) +void EnhancedShapeDumper::dumpEquationsAsElement(const uno::Sequence< OUString >& aEquations) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Equations" )); sal_Int32 nLength = aEquations.getLength(); @@ -595,7 +595,7 @@ void EnhancedShapeDumper::dumpEquationsAsElement(uno::Sequence< OUString > aEqua // PropertyValues specifies a sequence of PropertyValue instances. // so in this case it's a Sequence of a Sequence of a PropertyValue instances. // Welcome to Sequenception again. -void EnhancedShapeDumper::dumpHandlesAsElement(uno::Sequence< beans::PropertyValues > aHandles) +void EnhancedShapeDumper::dumpHandlesAsElement(const uno::Sequence< beans::PropertyValues >& aHandles) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Handles" )); sal_Int32 nSequenceLength = aHandles.getLength(); @@ -903,7 +903,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea } } -void EnhancedShapeDumper::dumpCoordinatesAsElement(uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aCoordinates) +void EnhancedShapeDumper::dumpCoordinatesAsElement(const uno::Sequence< drawing::EnhancedCustomShapeParameterPair >& aCoordinates) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Coordinates" )); sal_Int32 nLength = aCoordinates.getLength(); @@ -916,7 +916,7 @@ void EnhancedShapeDumper::dumpCoordinatesAsElement(uno::Sequence< drawing::Enhan xmlTextWriterEndElement( xmlWriter ); } -void EnhancedShapeDumper::dumpSegmentsAsElement(uno::Sequence< drawing::EnhancedCustomShapeSegment > aSegments) +void EnhancedShapeDumper::dumpSegmentsAsElement(const uno::Sequence< drawing::EnhancedCustomShapeSegment >& aSegments) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Segments" )); sal_Int32 nLength = aSegments.getLength(); @@ -942,7 +942,7 @@ void EnhancedShapeDumper::dumpStretchYAsAttribute(sal_Int32 aStretchY) xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("stretchY"), "%" SAL_PRIdINT32, aStretchY); } -void EnhancedShapeDumper::dumpTextFramesAsElement(uno::Sequence< drawing::EnhancedCustomShapeTextFrame > aTextFrames) +void EnhancedShapeDumper::dumpTextFramesAsElement(const uno::Sequence< drawing::EnhancedCustomShapeTextFrame >& aTextFrames) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "TextFrames" )); sal_Int32 nLength = aTextFrames.getLength(); @@ -963,7 +963,7 @@ void EnhancedShapeDumper::dumpTextFramesAsElement(uno::Sequence< drawing::Enhanc xmlTextWriterEndElement( xmlWriter ); } -void EnhancedShapeDumper::dumpGluePointsAsElement(uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aGluePoints) +void EnhancedShapeDumper::dumpGluePointsAsElement(const uno::Sequence< drawing::EnhancedCustomShapeParameterPair >& aGluePoints) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "GluePoints" )); sal_Int32 nLength = aGluePoints.getLength(); @@ -976,7 +976,7 @@ void EnhancedShapeDumper::dumpGluePointsAsElement(uno::Sequence< drawing::Enhanc xmlTextWriterEndElement( xmlWriter ); } -void EnhancedShapeDumper::dumpGluePointLeavingDirectionsAsElement(uno::Sequence< double > aGluePointLeavingDirections) +void EnhancedShapeDumper::dumpGluePointLeavingDirectionsAsElement(const uno::Sequence< double >& aGluePointLeavingDirections) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "GluePointLeavingDirections" )); sal_Int32 nLength = aGluePointLeavingDirections.getLength(); @@ -1016,7 +1016,7 @@ void EnhancedShapeDumper::dumpTextPathAllowedAsAttribute(bool bTextPathAllowed) xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textPathAllowed"), "%s", "false"); } -void EnhancedShapeDumper::dumpSubViewSizeAsElement(uno::Sequence< awt::Size > aSubViewSize) +void EnhancedShapeDumper::dumpSubViewSizeAsElement(const uno::Sequence< awt::Size >& aSubViewSize) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "SubViewSize" )); sal_Int32 nLength = aSubViewSize.getLength(); diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.hxx b/drawinglayer/source/dumper/EnhancedShapeDumper.hxx index 9a8f6b9e0577..e47750ee9b5e 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.hxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.hxx @@ -80,12 +80,12 @@ public: void dumpMirroredXAsAttribute(bool bMirroredX); // also used in EnhancedCustomShapeHandle void dumpMirroredYAsAttribute(bool bMirroredY); // also used in EnhancedCustomShapeHandle void dumpTextRotateAngleAsAttribute(double aTextRotateAngle); - void dumpAdjustmentValuesAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue> aAdjustmentValues); - void dumpExtrusionAsElement(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > aExtrusion); - void dumpPathAsElement(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > aPath); - void dumpTextPathAsElement(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > aTextPath); - void dumpEquationsAsElement(com::sun::star::uno::Sequence< OUString > aEquations); - void dumpHandlesAsElement(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValues > aHandles); + void dumpAdjustmentValuesAsElement(const com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue>& aAdjustmentValues); + void dumpExtrusionAsElement(const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& aExtrusion); + void dumpPathAsElement(const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& aPath); + void dumpTextPathAsElement(const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& aTextPath); + void dumpEquationsAsElement(const com::sun::star::uno::Sequence< OUString >& aEquations); + void dumpHandlesAsElement(const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValues >& aHandles); // EnhancedCustomShapeHandle.idl void dumpEnhancedCustomShapeHandleService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); @@ -105,18 +105,18 @@ public: // EnhancedCustomShapePath.idl void dumpEnhancedCustomShapePathService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); - void dumpCoordinatesAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeParameterPair > aCoordinates); - void dumpSegmentsAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeSegment > aSegments); + void dumpCoordinatesAsElement(const com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeParameterPair >& aCoordinates); + void dumpSegmentsAsElement(const com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeSegment >& aSegments); void dumpStretchXAsAttribute(sal_Int32 aStretchX); void dumpStretchYAsAttribute(sal_Int32 aStretchY); - void dumpTextFramesAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeTextFrame > aTextFrames); - void dumpGluePointsAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeParameterPair > aGluePoints); - void dumpGluePointLeavingDirectionsAsElement(com::sun::star::uno::Sequence< double > aGluePointLeavingDirections); + void dumpTextFramesAsElement(const com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeTextFrame >& aTextFrames); + void dumpGluePointsAsElement(const com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeParameterPair >& aGluePoints); + void dumpGluePointLeavingDirectionsAsElement(const com::sun::star::uno::Sequence< double >& aGluePointLeavingDirections); void dumpGluePointTypeAsAttribute(sal_Int32 aGluePointType); void dumpExtrusionAllowedAsAttribute(bool bExtrusionAllowed); void dumpConcentricGradientFillAllowedAsAttribute(bool bConcentricGradientFillAllowed); void dumpTextPathAllowedAsAttribute(bool bTextPathAllowed); - void dumpSubViewSizeAsElement(com::sun::star::uno::Sequence< com::sun::star::awt::Size > aSubViewSize); + void dumpSubViewSizeAsElement(const com::sun::star::uno::Sequence< com::sun::star::awt::Size >& aSubViewSize); // EnhancedCustomShapePath.idl void dumpEnhancedCustomShapeTextPathService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx index 639ec73e04b0..c0d1979a42c4 100644 --- a/drawinglayer/source/dumper/XShapeDumper.cxx +++ b/drawinglayer/source/dumper/XShapeDumper.cxx @@ -36,7 +36,7 @@ namespace { // auxiliary functions void dumpGradientProperty(com::sun::star::awt::Gradient aGradient, xmlTextWriterPtr xmlWriter); void dumpPolyPolygonBezierCoords(com::sun::star::drawing::PolyPolygonBezierCoords aPolyPolygonBezierCoords, xmlTextWriterPtr xmlWriter); -void dumpPointSequenceSequence(com::sun::star::drawing::PointSequenceSequence aPointSequenceSequence, uno::Sequence<uno::Sequence<drawing::PolygonFlags> >*, xmlTextWriterPtr xmlWriter); +void dumpPointSequenceSequence(const com::sun::star::drawing::PointSequenceSequence& aPointSequenceSequence, uno::Sequence<uno::Sequence<drawing::PolygonFlags> >*, xmlTextWriterPtr xmlWriter); void dumpPropertyValueAsElement(const beans::PropertyValue& rPropertyValue, xmlTextWriterPtr xmlWriter); // FillProperties.idl @@ -82,8 +82,8 @@ void dumpLineEndWidthAsAttribute(sal_Int32 aLineEndWidth, xmlTextWriterPtr xmlWr // PolyPolygonDescriptor.idl void dumpPolygonKindAsAttribute(com::sun::star::drawing::PolygonKind ePolygonKind, xmlTextWriterPtr xmlWriter); -void dumpPolyPolygonAsElement(com::sun::star::drawing::PointSequenceSequence aPolyPolygon, xmlTextWriterPtr xmlWriter); -void dumpGeometryAsElement(com::sun::star::drawing::PointSequenceSequence aGeometry, xmlTextWriterPtr xmlWriter); +void dumpPolyPolygonAsElement(const com::sun::star::drawing::PointSequenceSequence& aPolyPolygon, xmlTextWriterPtr xmlWriter); +void dumpGeometryAsElement(const com::sun::star::drawing::PointSequenceSequence& aGeometry, xmlTextWriterPtr xmlWriter); // CharacterProperties.idl void dumpCharHeightAsAttribute(float fHeight, xmlTextWriterPtr xmlWriter); @@ -134,12 +134,12 @@ void dumpHomogenMatrixLine3(com::sun::star::drawing::HomogenMatrixLine3 aLine, x void dumpTransformationAsElement(com::sun::star::drawing::HomogenMatrix3 aTransformation, xmlTextWriterPtr xmlWriter); void dumpNavigationOrderAsAttribute(sal_Int32 aNavigationOrder, xmlTextWriterPtr xmlWriter); void dumpHyperlinkAsAttribute(const OUString& sHyperlink, xmlTextWriterPtr xmlWriter); -void dumpInteropGrabBagAsElement(uno::Sequence< beans::PropertyValue> aInteropGrabBag, xmlTextWriterPtr xmlWriter); +void dumpInteropGrabBagAsElement(const uno::Sequence< beans::PropertyValue>& aInteropGrabBag, xmlTextWriterPtr xmlWriter); // CustomShape.idl void dumpCustomShapeEngineAsAttribute(const OUString& sCustomShapeEngine, xmlTextWriterPtr xmlWriter); void dumpCustomShapeDataAsAttribute(const OUString& sCustomShapeData, xmlTextWriterPtr xmlWriter); -void dumpCustomShapeGeometryAsElement(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue> aCustomShapeGeometry, xmlTextWriterPtr xmlWriter); +void dumpCustomShapeGeometryAsElement(const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue>& aCustomShapeGeometry, xmlTextWriterPtr xmlWriter); void dumpCustomShapeReplacementURLAsAttribute(const OUString& sCustomShapeReplacementURL, xmlTextWriterPtr xmlWriter); // XShape.idl @@ -623,7 +623,7 @@ void dumpPolygonKindAsAttribute(drawing::PolygonKind ePolygonKind, xmlTextWriter } } -void dumpPointSequenceSequence(drawing::PointSequenceSequence aPointSequenceSequence, uno::Sequence<uno::Sequence< drawing::PolygonFlags > >* pFlags, xmlTextWriterPtr xmlWriter) +void dumpPointSequenceSequence(const drawing::PointSequenceSequence& aPointSequenceSequence, uno::Sequence<uno::Sequence< drawing::PolygonFlags > >* pFlags, xmlTextWriterPtr xmlWriter) { // LibreOffice proudly presents - The Sequenception uno::Sequence<uno::Sequence< awt::Point > > pointSequenceSequence = aPointSequenceSequence; @@ -673,14 +673,14 @@ void dumpPointSequenceSequence(drawing::PointSequenceSequence aPointSequenceSequ } } -void dumpPolyPolygonAsElement(drawing::PointSequenceSequence aPolyPolygon, xmlTextWriterPtr xmlWriter) +void dumpPolyPolygonAsElement(const drawing::PointSequenceSequence& aPolyPolygon, xmlTextWriterPtr xmlWriter) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "PolyPolygon" )); dumpPointSequenceSequence(aPolyPolygon, NULL, xmlWriter); xmlTextWriterEndElement( xmlWriter ); } -void dumpGeometryAsElement(drawing::PointSequenceSequence aGeometry, xmlTextWriterPtr xmlWriter) +void dumpGeometryAsElement(const drawing::PointSequenceSequence& aGeometry, xmlTextWriterPtr xmlWriter) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Geometry" )); dumpPointSequenceSequence(aGeometry, NULL, xmlWriter); @@ -1059,7 +1059,7 @@ void dumpHyperlinkAsAttribute(const OUString& sHyperlink, xmlTextWriterPtr xmlWr OUStringToOString(sHyperlink, RTL_TEXTENCODING_UTF8).getStr()); } -void dumpInteropGrabBagAsElement(uno::Sequence< beans::PropertyValue> aInteropGrabBag, xmlTextWriterPtr xmlWriter) +void dumpInteropGrabBagAsElement(const uno::Sequence< beans::PropertyValue>& aInteropGrabBag, xmlTextWriterPtr xmlWriter) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "InteropGrabBag" )); @@ -1197,7 +1197,7 @@ void dumpPropertyValueAsElement(const beans::PropertyValue& rPropertyValue, xmlT xmlTextWriterEndElement( xmlWriter ); } -void dumpCustomShapeGeometryAsElement(uno::Sequence< beans::PropertyValue> aCustomShapeGeometry, xmlTextWriterPtr xmlWriter) +void dumpCustomShapeGeometryAsElement(const uno::Sequence< beans::PropertyValue>& aCustomShapeGeometry, xmlTextWriterPtr xmlWriter) { xmlTextWriterStartElement(xmlWriter, BAD_CAST( "CustomShapeGeometry" )); diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index c4122721aa8b..6cfad262f457 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -2042,7 +2042,7 @@ void SAL_CALL SvxUnoTextBase::moveTextRange( const uno::Reference< text::XTextRa void SvxPropertyValuesToItemSet( SfxItemSet &rItemSet, - const uno::Sequence< beans::PropertyValue > rPropertyVaules, + const uno::Sequence< beans::PropertyValue >& rPropertyVaules, const SfxItemPropertySet *pPropSet, SvxTextForwarder *pForwarder /*needed for WID_NUMLEVEL*/, sal_Int32 nPara /*needed for WID_NUMLEVEL*/) diff --git a/embeddedobj/source/inc/docholder.hxx b/embeddedobj/source/inc/docholder.hxx index 8ab030933bcc..26e513b69444 100644 --- a/embeddedobj/source/inc/docholder.hxx +++ b/embeddedobj/source/inc/docholder.hxx @@ -136,7 +136,7 @@ public: OUString GetContainerName() const { return m_aContainerName; } - void SetOutplaceFrameProperties( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > aProps ) + void SetOutplaceFrameProperties( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aProps ) { m_aOutplaceFrameProps = aProps; } void PlaceFrame( const ::com::sun::star::awt::Rectangle& aNewRect ); diff --git a/framework/source/fwe/xml/statusbardocumenthandler.cxx b/framework/source/fwe/xml/statusbardocumenthandler.cxx index 0b706edb1e28..ca170df325c5 100644 --- a/framework/source/fwe/xml/statusbardocumenthandler.cxx +++ b/framework/source/fwe/xml/statusbardocumenthandler.cxx @@ -89,12 +89,12 @@ static const char ITEM_DESCRIPTOR_WIDTH[] = "Width"; static const char ITEM_DESCRIPTOR_TYPE[] = "Type"; static void ExtractStatusbarItemParameters( - const Sequence< PropertyValue > rProp, - OUString& rCommandURL, - OUString& rHelpURL, - sal_Int16& rOffset, - sal_Int16& rStyle, - sal_Int16& rWidth ) + const Sequence< PropertyValue >& rProp, + OUString& rCommandURL, + OUString& rHelpURL, + sal_Int16& rOffset, + sal_Int16& rStyle, + sal_Int16& rWidth ) { for ( sal_Int32 i = 0; i < rProp.getLength(); i++ ) { diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx index 3c9038ca870f..639d33948a7a 100644 --- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx +++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx @@ -56,15 +56,15 @@ static const char ITEM_DESCRIPTOR_STYLE[] = "Style"; static const char ITEM_DESCRIPTOR_VISIBLE[] = "IsVisible"; static const char ITEM_DESCRIPTOR_WIDTH[] = "Width"; -static void ExtractToolbarParameters( const Sequence< PropertyValue > rProp, - OUString& rCommandURL, - OUString& rLabel, - OUString& rHelpURL, - OUString& rTooltip, - sal_Int16& rStyle, - sal_Int16& rWidth, - bool& rVisible, - sal_Int16& rType ) +static void ExtractToolbarParameters( const Sequence< PropertyValue >& rProp, + OUString& rCommandURL, + OUString& rLabel, + OUString& rHelpURL, + OUString& rTooltip, + sal_Int16& rStyle, + sal_Int16& rWidth, + bool& rVisible, + sal_Int16& rType ) { for ( sal_Int32 i = 0; i < rProp.getLength(); i++ ) { diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index b9ddeef3b5a5..29fdb60d0328 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -184,7 +184,7 @@ SotElement_Impl::~SotElement_Impl() // most of properties are holt by the storage but are not used OStorage_Impl::OStorage_Impl( uno::Reference< io::XInputStream > xInputStream, sal_Int32 nMode, - uno::Sequence< beans::PropertyValue > xProperties, + const uno::Sequence< beans::PropertyValue >& xProperties, uno::Reference< uno::XComponentContext > xContext, sal_Int32 nStorageType ) : m_rMutexRef( new SotMutexHolder ) @@ -224,7 +224,7 @@ OStorage_Impl::OStorage_Impl( uno::Reference< io::XInputStream > xInputStream, // most of properties are holt by the storage but are not used OStorage_Impl::OStorage_Impl( uno::Reference< io::XStream > xStream, sal_Int32 nMode, - uno::Sequence< beans::PropertyValue > xProperties, + const uno::Sequence< beans::PropertyValue >& xProperties, uno::Reference< uno::XComponentContext > xContext, sal_Int32 nStorageType ) : m_rMutexRef( new SotMutexHolder ) @@ -1880,7 +1880,7 @@ void OStorage_Impl::CommitRelInfo( const uno::Reference< container::XNameContain OStorage::OStorage( uno::Reference< io::XInputStream > xInputStream, sal_Int32 nMode, - uno::Sequence< beans::PropertyValue > xProperties, + const uno::Sequence< beans::PropertyValue >& xProperties, uno::Reference< uno::XComponentContext > xContext, sal_Int32 nStorageType ) : m_pImpl( new OStorage_Impl( xInputStream, nMode, xProperties, xContext, nStorageType ) ) @@ -1891,7 +1891,7 @@ OStorage::OStorage( uno::Reference< io::XInputStream > xInputStream, OStorage::OStorage( uno::Reference< io::XStream > xStream, sal_Int32 nMode, - uno::Sequence< beans::PropertyValue > xProperties, + const uno::Sequence< beans::PropertyValue >& xProperties, uno::Reference< uno::XComponentContext > xContext, sal_Int32 nStorageType ) : m_pImpl( new OStorage_Impl( xStream, nMode, xProperties, xContext, nStorageType ) ) diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx index 298341db10fe..00d4a0bd3024 100644 --- a/package/source/xstor/xstorage.hxx +++ b/package/source/xstor/xstorage.hxx @@ -181,13 +181,13 @@ struct OStorage_Impl // Constructors OStorage_Impl( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > xInputStream, sal_Int32 nMode, - ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties, + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xProperties, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, sal_Int32 nStorageType ); OStorage_Impl( ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > xStream, sal_Int32 nMode, - ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties, + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xProperties, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, sal_Int32 nStorageType ); @@ -314,13 +314,13 @@ public: OStorage( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > xInputStream, sal_Int32 nMode, - ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties, + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xProperties, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, sal_Int32 nStorageType ); OStorage( ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > xStream, sal_Int32 nMode, - ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties, + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xProperties, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext, sal_Int32 nStorageType ); diff --git a/sax/qa/cppunit/test_converter.cxx b/sax/qa/cppunit/test_converter.cxx index 3fad00b5bc5f..968292a54154 100644 --- a/sax/qa/cppunit/test_converter.cxx +++ b/sax/qa/cppunit/test_converter.cxx @@ -643,7 +643,7 @@ void ConverterTest::testNumber() doTestNumberToString("0", -0); } -void doTestEncodeBase64(char const*const pis, const uno::Sequence<sal_Int8> aPass) +void doTestEncodeBase64(char const*const pis, const uno::Sequence<sal_Int8>& aPass) { OUString const is(OUString::createFromAscii(pis)); OUStringBuffer buf; @@ -652,7 +652,7 @@ void doTestEncodeBase64(char const*const pis, const uno::Sequence<sal_Int8> aPas CPPUNIT_ASSERT_EQUAL(is, buf.makeStringAndClear()); } -void doTestDecodeBase64(const uno::Sequence<sal_Int8> aPass, char const*const pis) +void doTestDecodeBase64(const uno::Sequence<sal_Int8>& aPass, char const*const pis) { OUString const is(OUString::createFromAscii(pis)); uno::Sequence< sal_Int8 > tempSequence; diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 910a165d44fa..983bd2ca5811 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1473,7 +1473,7 @@ class BinaryInput sal_Int32 m_nSize; public: - BinaryInput( Sequence< ::sal_Int8 > aData, Reference< XMultiComponentFactory > xMCF, + BinaryInput( const Sequence< ::sal_Int8 >& aData, Reference< XMultiComponentFactory > xMCF, Reference< XComponentContext > xContext ); Reference< io::XInputStream > getInputStreamForSection( sal_Int32 nSize ); @@ -1488,7 +1488,7 @@ public: OUString readString( void ); }; -BinaryInput::BinaryInput( Sequence< ::sal_Int8 > aData, Reference< XMultiComponentFactory > xMCF, +BinaryInput::BinaryInput( const Sequence< ::sal_Int8 >& aData, Reference< XMultiComponentFactory > xMCF, Reference< XComponentContext > xContext ) : m_aData( aData ) , m_xMCF( xMCF ) diff --git a/sdext/source/minimizer/unodialog.cxx b/sdext/source/minimizer/unodialog.cxx index 00c41a031f98..b099136a3583 100644 --- a/sdext/source/minimizer/unodialog.cxx +++ b/sdext/source/minimizer/unodialog.cxx @@ -167,7 +167,7 @@ Reference< XButton > UnoDialog::insertButton( const OUString& rName, Reference< -Reference< XFixedText > UnoDialog::insertFixedText( const OUString& rName, const Sequence< OUString > rPropertyNames, const Sequence< Any > rPropertyValues ) +Reference< XFixedText > UnoDialog::insertFixedText( const OUString& rName, const Sequence< OUString >& rPropertyNames, const Sequence< Any >& rPropertyValues ) { Reference< XFixedText > xFixedText; try @@ -185,7 +185,7 @@ Reference< XFixedText > UnoDialog::insertFixedText( const OUString& rName, const -Reference< XCheckBox > UnoDialog::insertCheckBox( const OUString& rName, const Sequence< OUString > rPropertyNames, const Sequence< Any > rPropertyValues ) +Reference< XCheckBox > UnoDialog::insertCheckBox( const OUString& rName, const Sequence< OUString >& rPropertyNames, const Sequence< Any >& rPropertyValues ) { Reference< XCheckBox > xCheckBox; try @@ -203,7 +203,7 @@ Reference< XCheckBox > UnoDialog::insertCheckBox( const OUString& rName, const S -Reference< XControl > UnoDialog::insertFormattedField( const OUString& rName, const Sequence< OUString > rPropertyNames, const Sequence< Any > rPropertyValues ) +Reference< XControl > UnoDialog::insertFormattedField( const OUString& rName, const Sequence< OUString >& rPropertyNames, const Sequence< Any >& rPropertyValues ) { Reference< XControl > xControl; try @@ -221,7 +221,7 @@ Reference< XControl > UnoDialog::insertFormattedField( const OUString& rName, co -Reference< XComboBox > UnoDialog::insertComboBox( const OUString& rName, const Sequence< OUString > rPropertyNames, const Sequence< Any > rPropertyValues ) +Reference< XComboBox > UnoDialog::insertComboBox( const OUString& rName, const Sequence< OUString >& rPropertyNames, const Sequence< Any >& rPropertyValues ) { Reference< XComboBox > xControl; try @@ -239,7 +239,7 @@ Reference< XComboBox > UnoDialog::insertComboBox( const OUString& rName, const S -Reference< XRadioButton > UnoDialog::insertRadioButton( const OUString& rName, const Sequence< OUString > rPropertyNames, const Sequence< Any > rPropertyValues ) +Reference< XRadioButton > UnoDialog::insertRadioButton( const OUString& rName, const Sequence< OUString >& rPropertyNames, const Sequence< Any >& rPropertyValues ) { Reference< XRadioButton > xControl; try @@ -257,7 +257,7 @@ Reference< XRadioButton > UnoDialog::insertRadioButton( const OUString& rName, c -Reference< XListBox > UnoDialog::insertListBox( const OUString& rName, const Sequence< OUString > rPropertyNames, const Sequence< Any > rPropertyValues ) +Reference< XListBox > UnoDialog::insertListBox( const OUString& rName, const Sequence< OUString >& rPropertyNames, const Sequence< Any >& rPropertyValues ) { Reference< XListBox > xControl; try @@ -275,7 +275,7 @@ Reference< XListBox > UnoDialog::insertListBox( const OUString& rName, const Seq -Reference< XControl > UnoDialog::insertImage( const OUString& rName, const Sequence< OUString > rPropertyNames, const Sequence< Any > rPropertyValues ) +Reference< XControl > UnoDialog::insertImage( const OUString& rName, const Sequence< OUString >& rPropertyNames, const Sequence< Any >& rPropertyValues ) { Reference< XControl > xControl; try diff --git a/sdext/source/minimizer/unodialog.hxx b/sdext/source/minimizer/unodialog.hxx index 2186085b8b00..5d6750ee8174 100644 --- a/sdext/source/minimizer/unodialog.hxx +++ b/sdext/source/minimizer/unodialog.hxx @@ -81,25 +81,25 @@ public : const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& rPropertyValues ); com::sun::star::uno::Reference< com::sun::star::awt::XFixedText > insertFixedText( const OUString& rName, - const com::sun::star::uno::Sequence< OUString > rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any > rPropertyValues ); + const com::sun::star::uno::Sequence< OUString >& rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& rPropertyValues ); com::sun::star::uno::Reference< com::sun::star::awt::XCheckBox > insertCheckBox( const OUString& rName, - const com::sun::star::uno::Sequence< OUString > rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any > rPropertyValues ); + const com::sun::star::uno::Sequence< OUString >& rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& rPropertyValues ); com::sun::star::uno::Reference< com::sun::star::awt::XControl > insertFormattedField( const OUString& rName, - const com::sun::star::uno::Sequence< OUString > rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any > rPropertyValues ); + const com::sun::star::uno::Sequence< OUString >& rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& rPropertyValues ); com::sun::star::uno::Reference< com::sun::star::awt::XComboBox > insertComboBox( const OUString& rName, - const com::sun::star::uno::Sequence< OUString > rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any > rPropertyValues ); + const com::sun::star::uno::Sequence< OUString >& rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& rPropertyValues ); com::sun::star::uno::Reference< com::sun::star::awt::XRadioButton > insertRadioButton( const OUString& rName, - const com::sun::star::uno::Sequence< OUString > rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any > rPropertyValues ); + const com::sun::star::uno::Sequence< OUString >& rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& rPropertyValues ); com::sun::star::uno::Reference< com::sun::star::awt::XListBox > insertListBox( const OUString& rName, - const com::sun::star::uno::Sequence< OUString > rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any > rPropertyValues ); + const com::sun::star::uno::Sequence< OUString >& rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& rPropertyValues ); com::sun::star::uno::Reference< com::sun::star::awt::XControl > insertImage( const OUString& rName, - const com::sun::star::uno::Sequence< OUString > rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any > rPropertyValues ); + const com::sun::star::uno::Sequence< OUString >& rPropertyNames, const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& rPropertyValues ); void setControlProperty( const OUString& rControlName, const OUString& rPropertyName, const com::sun::star::uno::Any& rPropertyValue ); com::sun::star::uno::Any getControlProperty( const OUString& rControlName, const OUString& rPropertyName ); diff --git a/ucb/source/ucp/file/filnot.cxx b/ucb/source/ucp/file/filnot.cxx index 1f38d42cfb7b..393d85cde6e8 100644 --- a/ucb/source/ucp/file/filnot.cxx +++ b/ucb/source/ucp/file/filnot.cxx @@ -218,9 +218,10 @@ PropertyChangeNotifier::~PropertyChangeNotifier() void PropertyChangeNotifier::notifyPropertyChanged( - uno::Sequence< beans::PropertyChangeEvent > Changes ) + const uno::Sequence< beans::PropertyChangeEvent >& _Changes ) { sal_Int32 j; + uno::Sequence< beans::PropertyChangeEvent > Changes = _Changes; for( j = 0; j < Changes.getLength(); ++j ) Changes[j].Source = m_xCreatorContent; diff --git a/ucb/source/ucp/file/filnot.hxx b/ucb/source/ucp/file/filnot.hxx index dd4f690506c5..0edf0b5719f3 100644 --- a/ucb/source/ucp/file/filnot.hxx +++ b/ucb/source/ucp/file/filnot.hxx @@ -100,7 +100,7 @@ namespace fileaccess { ~PropertyChangeNotifier(); void notifyPropertyChanged( - com::sun::star::uno::Sequence< com::sun::star::beans::PropertyChangeEvent > seqChanged ); + const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyChangeEvent >& seqChanged ); }; diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx index 55d823770893..1ea45b812931 100644 --- a/uui/source/iahndl-ssl.cxx +++ b/uui/source/iahndl-ssl.cxx @@ -80,7 +80,7 @@ getContentPart( const OUString& _rRawString ) bool isDomainMatch( - const OUString& hostName, uno::Sequence< OUString > certHostNames) + const OUString& hostName, const uno::Sequence< OUString >& certHostNames) { for ( int i = 0; i < certHostNames.getLength(); i++){ OUString element = certHostNames[i]; diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index 12e005295c14..41b7bd3b3981 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -1247,7 +1247,7 @@ UUIInteractionHelper::handleMacroConfirmRequest( const OUString& aDocumentURL, const uno::Reference< embed::XStorage >& xZipStorage, const OUString& aDocumentVersion, - const uno::Sequence< security::DocumentSignatureInformation > aSignInfo, + const uno::Sequence< security::DocumentSignatureInformation >& aSignInfo, uno::Sequence< uno::Reference< task::XInteractionContinuation > > const & rContinuations ) SAL_THROW((uno::RuntimeException)) diff --git a/uui/source/iahndl.hxx b/uui/source/iahndl.hxx index 03c61230c80e..1325e7acf9c3 100644 --- a/uui/source/iahndl.hxx +++ b/uui/source/iahndl.hxx @@ -280,7 +280,7 @@ private: ::com::sun::star::embed::XStorage >& xZipStorage, const OUString& aDocumentVersion, const ::com::sun::star::uno::Sequence< - ::com::sun::star::security::DocumentSignatureInformation > + ::com::sun::star::security::DocumentSignatureInformation >& aSignInfo, com::sun::star::uno::Sequence< com::sun::star::uno::Reference< |