summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-14 13:23:06 +0200
committerNoel Grandin <noel@peralex.com>2014-03-17 09:00:07 +0200
commitd593f45886cbe6ee9d54af1cf84b11a9004efc61 (patch)
tree5423a2fac77c02b2a5b18b6b282bbcfdeff0c944 /include
parentc58fe8c85f159c6b456223b51981f411e312e33b (diff)
filter,formula: prefer passing OUString by reference
Change-Id: I332f1a593853283b72ecf4dfd82b36cc091661b4
Diffstat (limited to 'include')
-rw-r--r--include/filter/msfilter/escherex.hxx2
-rw-r--r--include/filter/msfilter/util.hxx2
-rw-r--r--include/formula/formdata.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx
index a97dd87015bd..f87aa5367089 100644
--- a/include/filter/msfilter/escherex.hxx
+++ b/include/filter/msfilter/escherex.hxx
@@ -1644,7 +1644,7 @@ public:
sal_Bool SeekToPersistOffset( sal_uInt32 nKey );
virtual sal_Bool InsertAtPersistOffset( sal_uInt32 nKey, sal_uInt32 nValue ); // nValue is being inserted into the Stream where it's appropriate (overwrite modus), without that the
// current StreamPosition changes
- void SetEditAs( OUString rEditAs );
+ void SetEditAs( const OUString& rEditAs );
rtl::OUString GetEditAs() { return mEditAs; }
SvStream& GetStream() const { return *mpOutStrm; }
sal_uLong GetStreamPos() const { return mpOutStrm->Tell(); }
diff --git a/include/filter/msfilter/util.hxx b/include/filter/msfilter/util.hxx
index b22c6fbb0f30..ddf5a120ac5c 100644
--- a/include/filter/msfilter/util.hxx
+++ b/include/filter/msfilter/util.hxx
@@ -136,7 +136,7 @@ MSFILTER_DLLPUBLIC EquationResult ParseCombinedChars(const OUString& rStr);
MSFILTER_DLLPUBLIC const char* GetOOXMLPresetGeometry( const char* sShapeType );
/// Similar to EnhancedCustomShapeTypeNames::Get(), but returns an MSO_SPT (binary / VML type).
-MSFILTER_DLLPUBLIC MSO_SPT GETVMLShapeType(OString aType);
+MSFILTER_DLLPUBLIC MSO_SPT GETVMLShapeType(const OString& aType);
}
diff --git a/include/formula/formdata.hxx b/include/formula/formdata.hxx
index 63033f4258af..08271191befb 100644
--- a/include/formula/formdata.hxx
+++ b/include/formula/formdata.hxx
@@ -55,7 +55,7 @@ public:
inline void SetEdFocus( sal_uInt16 nNew ) { nEdFocus = nNew; }
inline void SetUndoStr( const OUString& rNew ) { aUndoStr = rNew; }
inline void SetMatrixFlag(bool bNew) { bMatrix=bNew;}
- inline void SetUniqueId(const OString nNew) { aUniqueId=nNew;}
+ inline void SetUniqueId(const OString& nNew) { aUniqueId=nNew;}
inline void SetSelection(const Selection& aSel) { aSelection=aSel;}
protected:
void Reset();